Unverified Commit a5392ee7 authored by Sylvain Gugger's avatar Sylvain Gugger Committed by GitHub
Browse files

Fix test for torchneuroncore in Trainer (#22028)

parent de81adf9
......@@ -1538,7 +1538,7 @@ class Trainer:
if self.args.ddp_bucket_cap_mb is not None:
kwargs["bucket_cap_mb"] = self.args.ddp_bucket_cap_mb
if is_torch_neuroncore_available:
if is_torch_neuroncore_available():
return model
model = nn.parallel.DistributedDataParallel(
model,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment