srush / Tensor-Puzzles

Solve puzzles. Improve your pytorch.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What's the second argument of puzzle 8 for?

austinvhuang opened this issue · comments

Puzzle 8 has two arguments:

def diff(a: TT["i"], i: int) -> TT["i"]:

What's the second int argument for? It seems like the operation would be fully specified for the first argument alone given shape is an allowed operation.

It's not necessary. Just included so you can save characters.