Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zrr1999 committed Oct 10, 2023
1 parent 5068b29 commit df47e57
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/resnet_dynamo.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

compiler = TVMCompiler(full_graph=True, print_tabular_mode="rich")
net = resnet18(pretrained=True, num_classes=2)
net.eval() # from_paddle have no arg to set training mode.
optimized_net = paddlefx.optimize(net, backend=compiler)

x = paddle.rand([1, 3, 224, 224], dtype="float32")
Expand Down

0 comments on commit df47e57

Please sign in to comment.