kernel_initializer='he_uniform'))opt = SGD(lr=0.01, momentum=0.9)pyplot.legend()因为它返回以下错误:
ValueError: Failed to convert a NumPy array to a Tensor因此,我试图通过以下操作将X_train转
_user_tensor_data[F.cpu()] = F.zerocopy_from_numpy(self..conda/envs/lcr_env/lib/python3.6/site-packages/dgl-0.4-py3.6-linux-ppc64le.egg/dgl/backend/pytorch/tensor.py", line 276, in zerocopy_from_numpy
return th.as_tenso
gan.gen_forward(noise)}---------------------------------------------------------------------- 1465 self.name + ' is incompatible with the layer: '
AttributeError