pymc.math.zeros_like#

pymc.math.zeros_like(model,dtype=None,opt=False)[source]#

equivalent of numpy.zeros_likeParameters———-model : tensordtype : data-type, optionalopt : If True, we will return a constant instead of a graph when possible.

Useful for PyTensor optimization, not for user building a graph as thishave the consequence that model isn’t always in the graph.

Returns:
tensor

tensor the shape of model containing zeros of the type of dtype.