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

Commit 5957d9e

Browse files
ksasirxwei
authored andcommitted
Tensor documentation update. (#263)
Resolves [TF-448](https://bugs.swift.org/browse/TF-448).
1 parent 91da7b9 commit 5957d9e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Sources/TensorFlow/Core/Tensor.swift

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,11 @@ 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 vectors and matrices to
27+
/// potentially higher dimensions.
28+
///
29+
/// The generic parameter `Scalar` describes the type of scalars in the tensor (such as `Int32`,
30+
/// `Float`, etc).
2831
@frozen
2932
public struct Tensor<Scalar: TensorFlowScalar>: TensorProtocol {
3033
/// The underlying `TensorHandle`.

0 commit comments

Comments
 (0)