Yes, AutoGradMode is set to false. and then, data.requires_grad () always return false. My wonder is that conv1(data) return requires gradient, when AutoGradMode = true and input data not requires gradient. I thought that inpudata.requires_grad(false) is enougth to prevent creating gradient.