Is the mask in the assignment 2 correct?


Is this mask right?


They should be zeros under the diagonal,right?

and the boolean version should be create_tensor([[True,False],[[True,True]], right?

Hi @Amazing_Patrick

I think there is a mistake in the mask creation in the lab and also in the assignment (More in this thread).

The correct mask should be the one in the picture:
m_bool = create_tensor([[True, False], [True, True]])

Thank you so much for your answer!

1 Like