ultralytics 8.0.29 DDP-cls and default arg fixes (#813)
This commit is contained in:
parent
21ae321bc2
commit
7a7c8dc7b7
9 changed files with 38 additions and 38 deletions
|
|
@ -246,7 +246,7 @@ def intersect_dicts(da, db, exclude=()):
|
|||
|
||||
def is_parallel(model):
|
||||
# Returns True if model is of type DP or DDP
|
||||
return type(model) in (nn.parallel.DataParallel, nn.parallel.DistributedDataParallel)
|
||||
return isinstance(model, (nn.parallel.DataParallel, nn.parallel.DistributedDataParallel))
|
||||
|
||||
|
||||
def de_parallel(model):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue