You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docfx/api/TensorFlow/TensorFlow.TFTensor.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -64,7 +64,7 @@ items:
64
64
- TensorFlowSharp
65
65
namespace: TensorFlow
66
66
summary: TFTensor holds a multi-dimensional array of elements of a single data type.
67
-
remarks: "<p>\n You can create tensors with the various constructors in this class, or using\n the implicit conversions from various data types into a TFTensor.\n </p>\n <p>\n The implicit conversions for basic types produce tensors of one dimesion with\n a single element, while the implicit conversion from an array, expects a multi-dimensional\n array that is converted into a tensor of the right dimensions.\n </p>\n <p>\n The special \"String\" tensor data type that you will find in TensorFlow documentation\n really represents a byte array. You can create string tensors by using the <xref href=\"TensorFlow.TFTensor.CreateString\"></xref> \n method that takes a byte array buffer as input.\n </p>"
67
+
remarks: "<p>\n You can create tensors with the various constructors in this class, or using\n the implicit conversions from various data types into a TFTensor, including\n the creation of tensors from simple constants (returning a tensor that reprensets\n a scalar, that is, it is a 0D tensor), arrays (returning a tensor of a single\n dimension, 1D) or arbitrary multidimensional arrays.\n </p>\n <p>\n Given a tensor, you can retrieve the number of dimensions in it via the\n NumDims property, or you can retrieve the shape of a tensor, that is how many\n elements on each dimension the tensor has, by fetching the Shape property.\n </p>\n <p>\n The implicit conversions for basic types produce tensors of one dimesion with\n a single element, while the implicit conversion from an array, expects a multi-dimensional\n array that is converted into a tensor of the right dimensions.\n </p>\n <p>\n The special \"String\" tensor data type that you will find in TensorFlow documentation\n really represents a byte array. You can create string tensors by using the <xref href=\"TensorFlow.TFTensor.CreateString\"></xref> \n method that takes a byte array buffer as input.\n </p>\n <example>\n <pre><code>\n TFTensor scalar = 1; // Creates a 0D tensor, for the integer value 1\n int d = scalar.NumDims; // d will be equal to zero, as it is a 0D tensor\n long [] shape = scalar.Shape // returns an empty array, as it is a 0D tensor\n \n TFTensor list = new [] {1,2,3} // Creates a 1D tensor, or vector, for the values 1, 2, 3\n d = list.NumDims; // d will be one\n shape = list.Shape; // shape will be an array with a single value 3, representing that the dimension 0 has 3 elements\n \n // Creates a 3D tensor, \n TFTensor cube = new [,,] { {{1,2,3},{4,5,6}}}\n d = cube.NumDims // d will be 3\n shape = list.Shape // shape will be [1,2,3] which is the shape of the above 3D array\n </code></pre>\n </example>"
68
68
syntax:
69
69
content: 'public class TFTensor : TensorFlow.TFDisposable'
<section><p>The session options object holds configuration options that you want to use during your session, like the TensorFlow target or the configuration.</p>
0 commit comments