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

Add google style docstring & type hinting, fix bugs, improve PyTorch compatibility #1

Merged
merged 3 commits into from
Mar 6, 2020

Conversation

S-aiueo32
Copy link

Before reviewing of the PyTorch Lightning maintainers, I made a little changes as follow:

  • Add google style docstings
  • Add type hinting
  • Fix the bug in log_metrics:
    series was treated as a list after splitting the key, which causes type error, so I've fixed it to str.
  • Improve PyTorch compatibility
    TRAINS is framework agnostic, however, this integration is only for pytorch. So I led log_metrics to accept torch.Tensor.

@S-aiueo32 S-aiueo32 changed the title Add google style docstring & type hinting, fix bugs, improve PyTorch compatibility [WIP] Add google style docstring & type hinting, fix bugs, improve PyTorch compatibility Mar 5, 2020
@S-aiueo32 S-aiueo32 changed the title [WIP] Add google style docstring & type hinting, fix bugs, improve PyTorch compatibility Add google style docstring & type hinting, fix bugs, improve PyTorch compatibility Mar 5, 2020
@bmartinn bmartinn merged commit 1f53519 into bmartinn:master Mar 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants