Kernel dies whenever I run d2l torch


I’ve just started reading the book and I follow both PyTorch and TensorFlow versions.
Whenever I run a code with “from d2l import torch as d2l” and run d2l then the kernel dies.

This happens always with torch and never with “from d2l import tensorflow as d2l”.