Skip to content

[Bugfix] Fix tensor device#50

Merged
szhengac merged 1 commit intoawslabs:mainfrom
szhengac:tensor
Feb 10, 2023
Merged

[Bugfix] Fix tensor device#50
szhengac merged 1 commit intoawslabs:mainfrom
szhengac:tensor

Conversation

@szhengac
Copy link
Contributor

Description

Create tensor on cpu and then transfer it to GPU is slow. This pr fixes it by creating tensor on target device.

Checklist

  • PR's title starts with a category (e.g. [Bugfix], [Model], [Tutorial], etc)
  • Changes are complete (i.e. I finished coding on this PR)
  • All changes have test coverage
  • Code is well-documented

@szhengac szhengac requested a review from comaniac February 10, 2023 18:28
Copy link
Contributor

@comaniac comaniac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@szhengac szhengac merged commit 1189cf3 into awslabs:main Feb 10, 2023
@szhengac szhengac deleted the tensor branch February 10, 2023 18:56
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.

2 participants