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 1 commit
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
8 changes: 6 additions & 2 deletions Sources/TensorFlow/Core/Tensor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,12 @@ 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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The column limit in this repo is 100. Could you please make these comments fit in 100 columns?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure, I have made sure that these comments fit in 100 columns.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Although they do fit within 100 columns, I don't believe they fit to size yet. Could you expand each line so that it fits to size?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As suggested, each line is expanded so that it fits to size.

/// vectors and matrices to potentially higher dimensions.
///
/// An associated data-type describes the format of each element in the
/// tensor (such as integer, a floating point number or something else,
/// etc.).
@frozen
public struct Tensor<Scalar: TensorFlowScalar>: TensorProtocol {
/// The underlying `TensorHandle`.
Expand Down