Missed TensorFlow Dev Summit? Check out the video playlist. Watch recordings

TensorFlowScalar

public protocol TensorFlowScalar : _TensorFlowDataTypeCompatible
  • makeTensor(rank:)

    Extension method

    Convert to a tensor with the specified rank, with all dimensions equal to 1.

    Declaration

    public func makeTensor(rank: Int) -> Tensor<Self>
  • init(_:)

    Extension method

    Declaration

    public init?(_ tensor: Tensor<Self>)