Skip to content
This repository was archived by the owner on Jul 1, 2023. It is now read-only.

Commit 044d538

Browse files
Sasikanth KottiSasikanth Kotti
authored andcommitted
Tensor documentation update. (#TF-448)
1 parent 5fa5d5c commit 044d538

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Sources/TensorFlow/Core/Tensor.swift

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,12 @@ public protocol AnyTensor {
2323
var _tensorFlowDataType: TensorDataType { get }
2424
}
2525

26-
/// `Tensor` is a multi-dimensional array used for computation. It is a wrapper around a
27-
/// `TensorHandle`.
26+
/// A multidimensional array of elements that is a generalization of
27+
/// vectors and matrices to potentially higher dimensions.
28+
///
29+
/// An associated data-type describes the format of each element in the
30+
/// tensor (such as integer, a floating point number or something else,
31+
/// etc.).
2832
@frozen
2933
public struct Tensor<Scalar: TensorFlowScalar>: TensorProtocol {
3034
/// The underlying `TensorHandle`.

0 commit comments

Comments
 (0)