Tensorex.zero

You're seeing just the function zero, go back to Tensorex module for more information.

Specs

zero([pos_integer(), ...]) :: t()

Returns a tensor with all of zero elements.

iex> Tensorex.zero([4, 4, 2])
%Tensorex{data: %{}, shape: [4, 4, 2]}

iex> Tensorex.zero([-5])
** (ArgumentError) expected a list of positive integers, got: [-5]