Hi,
I have 2 categories of classes Category 1 and Category 2. Category 1 contains 6 classes and category 2 contains 4 classes I have extracted the features of both categories with dimensions of 3,128 and features of category 1 classes are stored at index=0,1,…5 while features of category2 classes are stored at index=6,7,8,9. Could u plz guide how to combine the features of all classes in a single variable?
It should look be like:
all_features=f1,f2,…f10
I’m not sure how the mentioned shape of [3, 128] fits the indices in [0, 10] from the description.
However, if you want to concatenate tensors, you could use torch.cat or torch.stack, if you want to add a new dimension.