Skip to content

Commit 6cc2e62

Browse files
authored
Update tf.Tensors in Customization basics tutorial
1 parent 7101752 commit 6cc2e62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

site/en/tutorials/customization/basics.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
"source": [
107107
"## Tensors\n",
108108
"\n",
109-
"A Tensor is a multi-dimensional array. Similar to NumPy `ndarray` objects, `tf.Tensor` objects have a data type and a shape. Additionally, `tf.Tensor` can reside in accelerator memory (like a GPU). TensorFlow offers a rich library of operations (for example, `tf.math.add`, `tf.linalg.matmul`, and `tf.linalg.inv`) that consume and produce `tf.Tensor`. These operations automatically convert built-in Python types. For example:\n"
109+
"A Tensor is a multi-dimensional array. Similar to NumPy `ndarray` objects, `tf.Tensor` objects have a data type and a shape. Additionally, `tf.Tensor`s can reside in accelerator memory (like a GPU). TensorFlow offers a rich library of operations (for example, `tf.math.add`, `tf.linalg.matmul`, and `tf.linalg.inv`) that consume and produce `tf.Tensor`s. These operations automatically convert built-in Python types. For example:\n"
110110
]
111111
},
112112
{
@@ -156,7 +156,7 @@
156156
"id": "eBPw8e8vrsom"
157157
},
158158
"source": [
159-
"The most obvious differences between NumPy arrays and `tf.Tensor` are:\n",
159+
"The most obvious differences between NumPy arrays and `tf.Tensor`s are:\n",
160160
"\n",
161161
"1. Tensors can be backed by accelerator memory (like GPU, TPU).\n",
162162
"2. Tensors are immutable."

0 commit comments

Comments
 (0)