Skip to content

Commit

Permalink
fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
cyber-pioneer committed Mar 16, 2023
1 parent d62762f commit 42e19ad
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,7 @@ def test_resnet(self):

def test_resnet_composite(self):
core._set_prim_backward_enabled(True)
core._add_skip_comp_ops("batch_norm")
static_loss = self.train(to_static=True)
core._set_prim_backward_enabled(False)
dygraph_loss = self.train(to_static=False)
Expand Down

0 comments on commit 42e19ad

Please sign in to comment.