ML Community Day is November 9! Join us for updates from TensorFlow, JAX, and more Learn more


Returns the instructions.Type of val.

val Pattern of backend-specific Tensors or a Python or numpy constant.
backend Object implementing required backend operations.
preferred_type instructions.Type to prefer, if t is a constant.

vm_type Pattern of instructions.TensorType describing t