aesara.tensor.specify_shape#

aesara.tensor.specify_shape(x: Union[ndarray, Number, Variable], shape: Union[None, integer, int, Variable, List[Union[None, integer, int, Variable]], Tuple[Union[None, integer, int, Variable]]])[source]#

Specify a fixed shape for a Variable.

If a dimension’s shape value is None, the size of that dimension is not considered fixed/static at runtime.