toTensorShape

fun Shape.toTensorShape(): TensorShape

Converts Shape to TensorShape object.