Segmentation Fault when assign tensor on Raspberry Pi

HW: Raspberry Pi 3B+
OS: Raspbian Buster
Pytorch: 1.1.0
Build from source.

The code bellow works fine on PC, but there’s a Segmentation Fault on Raspberry Pi.

import torch
x = torch.tensor([[1.]])
y = torch.tensor([[0.]])
y[:, 0] = x[:, 0] # Segmentation Fault here