Skip to content

Commit 66be59e

Browse files
authored
Update INTRO.md
1 parent ed62e5e commit 66be59e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

INTRO.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,13 @@ This repository aims for comparative analysis of TensorFlow vs PyTorch, for thos
1818
Currently, torch.Variable returns torch.tensor and torch.tensor can function as old torch.Variable.
1919

2020

21-
21+
## VS Table
2222

2323
| | TensorFlow | PyTorch |
2424
|---------------|------------------------------------------------------|----------------------------------------------------|
25-
| Numpy to tensor | [Numpy to tf.Tensor](https://github.com/tango4j/tensorflow-vs-pytorch#numpy-to-tftensor) tf.convert_to_tensor(numpy_array, np.float32) | [Numpy to torch.Tensor](https://github.com/tango4j/tensorflow-vs-pytorch#numpy-to-torchtensor) torch.from_numpy(numpy_array) |
25+
| Numpy to tensor | [Numpy to tf.Tensor](https://github.com/tango4j/tensorflow-vs-pytorch#numpy-to-tftensor) tf.convert_to_tensor(numpy_array, np.float32) | [Numpy to torch.Tensor](https://github.com/tango4j/tensorflow-vs-pytorch#numpy-to-torchtensor) torch.from_numpy(numpy_array) |
2626
| Tensor to Numpy | [tf.Tensor to Numpy](https://github.com/tango4j/tensorflow-vs-pytorch#tftensor-to-numpy) | [torch.Tensor to Numpy](https://github.com/tango4j/tensorflow-vs-pytorch#torchtensor-to-numpy) |
27-
| | tensorflow_tensor.eval() or tf.convert_to_tensor(numpy_array, np.float32) |torch_for_numpy.numpy()
28-
|---------------|------------------------------------------------------|----------------------------------------------------|
27+
| | tensorflow_tensor.eval() tf.convert_to_tensor(numpy_array, np.float32) |torch_for_numpy.numpy() |
2928

3029
## TABLE OF CONTENTS
3130

0 commit comments

Comments
 (0)