Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix example code #2976

Merged
merged 1 commit into from
Oct 21, 2020
Merged

Fix example code #2976

merged 1 commit into from
Oct 21, 2020

Commits on Oct 21, 2020

  1. Fix example code

    Two issues are fixed:
    1. The example code previously could not run since `TorchModel.from_pytorch` does not accept a `loss` parameter
    [Source code](https://github.com/intel-analytics/analytics-zoo/blob/b246b435923ef1a1cbdf1f191d5087cd155aa00a/pyzoo/zoo/pipeline/api/torch/torch_loss.py#L42)
    2. Previously the code blocks are horribly indented -- every line had four spaces at the beginning so they could not run under a naive copy and paste. **This might exist in other places and I would suggest creating a script to check!!!**
    fanzhuyifan committed Oct 21, 2020
    Configuration menu
    Copy the full SHA
    b16005a View commit details
    Browse the repository at this point in the history