Hi,
i want to do the same operations on tensors which are not always the exact dimensions and would like to use a list (for instance [4,1,100,100] and [4,3,100,100] as in monochrome vs. RGB images).
what i would like to do is something like this:
def crop_tensors_list(tensors_list):
for current_tensor in tensors_list:
current_tensor = current_tensor[:,0:50,0:50]
return tensors_list
You declare tensors1 and tensors2 but you reference tensor1 and tensor2 (with no s) when creating tensors_list. Otherwise what you wrote should work, as such: