Комментарии:
Oof, i think the bing chat can take that picture and be able to tell that the bridge is dangerous to cross right now meaning the future is now🎉
Ответитьt.reshape(12) or t.reshape(-1)
Ответитьt.flattern() makes my life simpler😅😂
ОтветитьAnswer for flattening with reshaping : t.reshape([-1])
ОтветитьThe other way to flatten the tensor is by using t = t.reshape( -1 ) in flatten(t) function
Ответитьt.reshape(t.numel()) or t.reshape(tensor(t.shape).prod().... Either of these should work
ОтветитьGratulations on your 100.000 followers here! :)
Ответитьmy answer (t.reshape(-1)). Without looking, I swear
Ответитьdef flatten(t):
return t.reshape(-1)
t.reshape(-1)
Ответитьt = t.reshape(12)
Ответитьr.reshape(1,torch.tensor(r.shape).prod()).squeeze() for a tensor r
ОтветитьNow do scatter()
Ответитьt.reshape(1,-1)[0], better late than never :p
Ответитьt.reshape(-1)
ОтветитьVery good.
Ответитьbest work u guys are doing, lot of hard work u both did ,to get this knowledge , love from India
ОтветитьNice tutorial! It would be really great if you change the backsound while you write the code. Because it is not that comfortable to hear, especially when you hear with earphone.
Ответитьt.reshape(12)
t.reshape(-1)