Skip to content

Commit fbb7ca4

Browse files
committed
Shape property
Signed-off-by: Ryan Nett <[email protected]>
1 parent ab38180 commit fbb7ca4

File tree

1 file changed

+6
-0
lines changed
  • tensorflow-core-kotlin/tensorflow-core-kotlin-api/src/main/kotlin/org/tensorflow

1 file changed

+6
-0
lines changed

tensorflow-core-kotlin/tensorflow-core-kotlin-api/src/main/kotlin/org/tensorflow/OperandHelpers.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ package org.tensorflow
1919
import org.tensorflow.ndarray.Shape
2020
import org.tensorflow.ndarray.Shaped
2121

22+
/**
23+
* The (possibly partially known) shape of the tensor referred to by the {@link Output} of this operand.
24+
* @see Operand.shape
25+
*/
26+
public val Operand<*>.shape: Shape get() = this.shape()
27+
2228
/**
2329
* Require the [Shaped] object have a certain shape.
2430
*

0 commit comments

Comments
 (0)