srush / Tensor-Puzzles

Solve puzzles. Improve your pytorch.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.