在使用jupyter notebook学习动手学深度学习时,出现以下错误:

%matplotlib inline
import math
import torch
from torch import nn
from torch.nn import functional as F
from d2l import torch as d2l

batch_size, num_steps = 32, 35
train_iter, vocab = d2l.load_data_time_machine(batch_size, num_steps)

在这里插入图片描述
部分初始化的模块 "pandas "没有属性 “core”(很可能是循环导入造成的)

解决:关闭所有的jupyter notebook,并重启

Logo

有“AI”的1024 = 2048,欢迎大家加入2048 AI社区

更多推荐