toShape

fun TensorShape.toShape(): Shape

Converts TensorShape to Shape object.