value

open fun Tensor<T>.value(): T

Returns a single tensor value of unit dimension. The tensor shape must be equal to 1.

Return

the value of a scalar tensor.

Sources

common source
Link copied to clipboard