Created
June 16, 2021 09:30
-
-
Save LewisGet/0b66608d1a1a4dc8cff4d76d9639fe3f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import torch | |
import tensorflow as tf | |
pytorch_tensor = torch.zeros(10) | |
np_tensor = pytorch_tensor.numpy() | |
tf_tensor = tf.convert_to_tensor(np_tensor) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment