为什么import torch后还要from d2l import torch as d2l?

1707376918258(1)

image
如果不重命名,那两行就重名了。

1 Like

为什么这里要从d2l再引入一个torch呢,这个和上面那个有什么不同么?