Kernel keeps dying when plotting a graph after importing the torch library

前端 未结 0 856
终归单人心
终归单人心 2021-01-20 14:46

I\'m trying to run the following code:

import matplotlib.pyplot as plt
%matplotlib inline
import torch

x = y = torch.tensor([1,2,3]).numpy()
plt.plot(x,y);
<         


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