forked from jittor/jittor
Update post_step document
This commit is contained in:
parent
348c0050b9
commit
47d938b2f3
|
@ -188,7 +188,7 @@ class Optimizer(object):
|
|||
def step(self, loss):
|
||||
self.pre_step(loss)
|
||||
...
|
||||
self.post_step(loss)
|
||||
self.post_step()
|
||||
"""
|
||||
if loss is not None:
|
||||
self.backward(loss, retain_graph)
|
||||
|
@ -203,7 +203,7 @@ class Optimizer(object):
|
|||
def step(self, loss):
|
||||
self.pre_step(loss)
|
||||
...
|
||||
self.post_step(loss)
|
||||
self.post_step()
|
||||
"""
|
||||
jt.flags.node_order = 0
|
||||
self.zero_grad()
|
||||
|
|
Loading…
Reference in New Issue