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 #283, refactor create tbtt engine method #287

Merged
merged 1 commit into from Oct 15, 2018

Conversation

vfdev-5
Copy link
Collaborator

@vfdev-5 vfdev-5 commented Oct 12, 2018

Fixes #283

Description: refactored create_supervised_tbptt_trainer method following #283.
Removed completely _prepare_tbptt_batch.

  • Replace convert_tensor by prepare_batch (line)
  • Call prepare_batch on time chunks (the quantity used to compute gradients) rather that whole time series mini bactch
  • Add prepare_batch function in the arguments
  • Add non_blocking in the arguments

@AntoinePrv please review the modifications.

Check list:

  • Documentation is updated (if required)

@AntoinePrv
Copy link
Contributor

LGTM, thank you!

@vfdev-5
Copy link
Collaborator Author

vfdev-5 commented Oct 12, 2018

@jasonkriss @alykhantejani I let you merge this if you are OK too

@jasonkriss
Copy link
Contributor

LGTM! @alykhantejani I'll let you merge.

from ignite._utils import convert_tensor, apply_to_tensor
from ignite.engine import Engine
from ignite._utils import apply_to_tensor
from ignite.engine import Engine, _prepare_batch

This comment was marked as off-topic.

@alykhantejani alykhantejani merged commit 4ff374f into pytorch:master Oct 15, 2018
@vfdev-5 vfdev-5 deleted the issue_283 branch October 30, 2018 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants