aesara.tensor.empty_like

Contents

aesara.tensor.empty_like#

aesara.tensor.empty_like(prototype: ndarray | TensorVariable, dtype: str | generic | dtype | None = 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 prototype define these same attributes of the returned array.

  • dtype (data-type, optional) – Overrides the data type of the result.