Is `len` allowed?
lkhphuc opened this issue · comments
For example after puzzle 1, I want to construct a vectors of 1s with the same length as a given vector a
, can I use ones(len(a))
?
Oy sorry. I missed that we can use shape
.
Solve puzzles. Improve your pytorch.
lkhphuc opened this issue · comments
For example after puzzle 1, I want to construct a vectors of 1s with the same length as a given vector a
, can I use ones(len(a))
?
Oy sorry. I missed that we can use shape
.