.xshape._inference_runtime¶
- class experimental_experiment.xshape._inference_runtime._InferenceRuntime[source]¶
Sets shape and type.
- compute_constant(name: str, exc: bool = True, only_array: bool = False, allow_empty: bool = False) Tuple[ndarray, Dict[str, ndarray] | None][source]¶
Computes a constant.
- Parameters:
name – constant name
exc – raises an exception if any failure
only_array – do not return TensorProto
allow_empty – allow empty result
- Returns:
constant
If returns None if the constant is a FakeTensor.