Skip to content

Commit

Permalink
Orca PyTorch Estimator input torch loss instance (#3003)
Browse files Browse the repository at this point in the history
* loss instance

* update
  • Loading branch information
hkvision committed Nov 2, 2020
1 parent 44a55f7 commit b50afe5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/orca/example/learn/horovod/pytorch_estimator.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def train_example(workers_per_node):
estimator = Estimator.from_torch(
model=model_creator,
optimizer=optimizer_creator,
loss=nn.MSELoss,
loss=nn.MSELoss(),
scheduler_creator=scheduler_creator,
workers_per_node=workers_per_node,
config={
Expand Down

0 comments on commit b50afe5

Please sign in to comment.