Thank you for helping me prepare for tensor interviews
@danielcampos1236 күн бұрын
For puzzle 8, you could just do: a @ triu(a.shape[0])
@jcbmrshll8 ай бұрын
great video!
@skanderbegvictor648711 ай бұрын
For puzzle 13, I think we can use a zeros and then assign vector a to positions and then only broadcast till j
@corgirun789211 ай бұрын
Very interesting
@JohnSmith-he5xg10 ай бұрын
Its pretty unclear what you're going for with the coloring scheme. Blue values are higher than yellow? Blue * yellow should be??? IMO gray scale would have been a better choice.
@bubster2a10 ай бұрын
Yellow are positive, blue are negative. More blue is a smaller number and more yellow is a bigger number
@boussouarsari448217 сағат бұрын
My way of doing compress! def compress(g: TT["i", bool], v: TT["i"], i:int) -> TT["i"]: small = v[g] i = g.shape[0] j = small.shape[0] return small @ eye(i)[:j,:]