TF 2.0 is out! Get hands-on practice at TF World, Oct 28-31. Use code TF20 for 20% off select passes. Register now

tfp.experimental.auto_batching.type_inference.type_of_pattern

View source on GitHub

Returns the instructions.Type of val.

Aliases:

tfp.experimental.auto_batching.type_inference.type_of_pattern(
    val,
    backend,
    preferred_type=None
)

Args:

  • 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.

Returns: