Closed dan-zheng closed 5 years ago
Make constructors that take both "shape" and "data" arguments:
Seq[Int]
Int*
np.full(shape, fill_value)
Rename zeros(Tensor) and ones(Tensor) to zeros_like and ones_like.
zeros(Tensor)
ones(Tensor)
zeros_like
ones_like
Multiple parameter lists is a great idea, noted in #17. I'll continue to focus on GPU support.
Make constructors that take both "shape" and "data" arguments:
Seq[Int]
, notInt*
. This clearly distinguishes shape from data.np.full(shape, fill_value)
).Rename
zeros(Tensor)
andones(Tensor)
tozeros_like
andones_like
.