aesara.tensor.empty_like#
- aesara.tensor.empty_like(prototype: Union[ndarray, TensorVariable], dtype: Optional[Union[str, generic, dtype]] = None) TensorVariable[source]#
Return a new array with the same shape and type as a given array.
See
numpy.empty_like.- Parameters:
prototype – The shape and data-type of
prototypedefine these same attributes of the returned array.dtype (data-type, optional) – Overrides the data type of the result.