Package org.jetbrains.kotlinx.dl.api.core.shape

Functions

head
Link copied to clipboard
fun Shape.head(): Long

Returns first dimension

tail
Link copied to clipboard
fun Shape.tail(): LongArray

Returns last dimensions (except first).

toShape
Link copied to clipboard
fun TensorShape.toShape(): Shape

Converts TensorShape to Shape object.

toTensorShape
Link copied to clipboard
fun Shape.toTensorShape(): TensorShape

Converts Shape to TensorShape object.