Skip to content

Commit

Permalink
Updated profiler examples to be nonzcc
Browse files Browse the repository at this point in the history
  • Loading branch information
Jihyeong Lee committed Sep 7, 2022
1 parent fef2253 commit bb64f33
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ def train(batch_size, epoch, net, hook, device, local_rank):
epoch_times = []

if hook:
hook.register_module(net)
hook.register_loss(loss_optim)
# train the model

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ def train(batch_size, epoch, net, hook, args, local_rank):

print("START VALIDATING")
if hook:
hook.register_module(net)
hook.set_mode(modes.EVAL)
test_sampler.set_epoch(i)
net.eval()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ def train(args, net, device):
epoch_times = []

if hook:
hook.register_module(net)
hook.register_loss(loss_optim)
# train the model

Expand Down

0 comments on commit bb64f33

Please sign in to comment.