How can I get the gradient of each weight matrix after passing an image

前端 未结 0 1546
有刺的猬
有刺的猬 2020-12-19 08:50

I\'m using a pre-trained resnet101 model from Pytorch:

import torch
import matplotlib.pyplot as plt
import numpy as np
import torch.nn as nn
import cv2 as cv
         


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