MCPcopy Create free account
hub / github.com/MotrixLab/insactor / __init__

Method __init__

diffplanner/utils/dist_utils.py:49–52  ·  view source on GitHub ↗
(self, grad_clip=None, coalesce=True, bucket_size_mb=-1)

Source from the content-addressed store, hash-verified

47class DistOptimizerHook(OptimizerHook):
48
49 def __init__(self, grad_clip=None, coalesce=True, bucket_size_mb=-1):
50 self.grad_clip = grad_clip
51 self.coalesce = coalesce
52 self.bucket_size_mb = bucket_size_mb
53
54 def after_train_iter(self, runner):
55 runner.optimizer.zero_grad()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected