Closed zfbz closed 1 year ago
Hi, I'm a beginner. I want to know why to repeat data_shot during meta-training. train_meta.py, line.158 logits = model((data_shot.unsqueeze(0).repeat(num_gpu, 1, 1, 1, 1), data_query))
logits = model((data_shot.unsqueeze(0).repeat(num_gpu, 1, 1, 1, 1), data_query))
hi, this is for multi-gpu computing.
Why does data_query not need to repeat(only data_shot)? Are there any related multi-gpu programming references? I haven't used this before. Thanks.
data_query
data_shot
Hi, I'm a beginner. I want to know why to repeat data_shot during meta-training. train_meta.py, line.158
logits = model((data_shot.unsqueeze(0).repeat(num_gpu, 1, 1, 1, 1), data_query))