Skip to content

Commit 25f88af

Browse files
authored
Update INTRO.md
1 parent a2f24b3 commit 25f88af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

INTRO.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Currently, torch.Variable returns torch.tensor and torch.tensor can function as
2424
|---------------|------------------------------------------------------|----------------------------------------------------|
2525
| Numpy to tensor | [**Numpy to tf.Tensor**](https://github.com/tango4j/tensorflow-vs-pytorch#numpy-to-tftensor) <br/> ```tf.convert_to_tensor(numpy_array, np.float32)``` | [**Numpy to torch.Tensor**](https://github.com/tango4j/tensorflow-vs-pytorch#numpy-to-torchtensor) <br/> ```torch.from_numpy(numpy_array)``` |
2626
| Tensor to Numpy | [**tf.Tensor to Numpy**](https://github.com/tango4j/tensorflow-vs-pytorch#tftensor-to-numpy) <br/> ```tensorflow_tensor.eval()``` <br/> ```tf.convert_to_tensor(numpy_array, np.float32)``` | [**torch.Tensor to Numpy**](https://github.com/tango4j/tensorflow-vs-pytorch#torchtensor-to-numpy) <br/> ```torch_for_numpy.numpy()``` |
27-
| Dimension check | [.shape variable](https://github.com/tango4j/tensorflow-vs-pytorch#shape-variable-in-tensorflow) <br/> [tf.rank function](https://github.com/tango4j/tensorflow-vs-pytorch#tfrank-function) <br/> ```my_image.shape``` <br/> ```tf.rank(my_image)``` | [Automatically Displayed PyTorch Tensor Dimension](https://github.com/tango4j/tensorflow-vs-pytorch#automatically-displayed-pytorch-tensor-dimension) <br/> [.shape variable in PyTorch](https://github.com/tango4j/tensorflow-vs-pytorch#shape-variable-in-pytorch) <br/> ```torch_for_numpy.shape ``` |
27+
| Dimension check | [**.shape variable**](https://github.com/tango4j/tensorflow-vs-pytorch#shape-variable-in-tensorflow) <br/> [tf.rank function](https://github.com/tango4j/tensorflow-vs-pytorch#tfrank-function) <br/> ```my_image.shape``` <br/> ```tf.rank(my_image)``` | [**Automatically Displayed Dim.**](https://github.com/tango4j/tensorflow-vs-pytorch#automatically-displayed-pytorch-tensor-dimension) <br/> [**.shape variable in PyTorch**](https://github.com/tango4j/tensorflow-vs-pytorch#shape-variable-in-pytorch) <br/> ```torch_for_numpy.shape ``` |
2828

2929
## Table of Contents
3030

0 commit comments

Comments
 (0)