Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use variable_data() in tensor_to_numpy (#22214)
Summary: As part of the Variable/Tensor merge, we want to gradually remove call sites of `tensor_data()` and the API itself, and instead uses `variable_data()`. This PR removes the `tensor_data()` call in the tensor_to_numpy conversion path. Pull Request resolved: #22214 Differential Revision: D15997397 Pulled By: yf225 fbshipit-source-id: 6fcab7b14e138824fc2adb5434512bcf868ca375
- Loading branch information
1 parent
f176950
commit 5f84f37
Showing
2 changed files
with
8 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters