How to optimise memory usage of looped loss function in PyTorch?

前端 未结 0 1290
醉梦人生
醉梦人生 2021-01-02 11:11

I have a loss function that requires multiple internal passes:

def my_loss_func(logits, sigma, labels, num_passes):
    total_loss = 0
    img_batch_size = lo         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题