Hello everyone, I have a question about how I can broadcast my tensor. For example, I a tensor X = [1,0,0,1,0] and an embedding as follow:
Y = [[0.1992, 0.5196, 0.4954],
[0.1224, 0.0704, 0.6504],
[0.5171, 0.8013, 0.1156],
[0.8703, 0.2654, 0.6088],
[0.1722, 0.2609, 0.0734]]
And then, I want to convert X from [1,0,0,1,0] to
X = [[0.1992, 0.5196, 0.4954],
[0.8703, 0.2654, 0.6088]]
This is the first time I post a topic, so if there are any problem, please remind me. Thanks