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

Tensor documentation update. (#TF-448) #263

Merged
merged 3 commits into from
Jun 20, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions Sources/TensorFlow/Core/Tensor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@ public protocol AnyTensor {
var _tensorFlowDataType: TensorDataType { get }
}

/// `Tensor` is a multi-dimensional array used for computation. It is a wrapper around a
/// `TensorHandle`.
/// A multidimensional array of elements that is a generalization of vectors and matrices to
/// potentially higher dimensions.
///
/// The generic parameter `Scalar` describes the type of scalars in the tensor (such as `Int32`,
/// `Float`, etc).
@frozen
public struct Tensor<Scalar: TensorFlowScalar>: TensorProtocol {
/// The underlying `TensorHandle`.
Expand Down