[ 无参数 ] torch.Tensor.is_leaf

torch.Tensor.is_leaf

torch.Tensor.is_leaf

paddle.Tensor.is_leaf

paddle.Tensor.is_leaf

两者功能一致,均无参数,判断 Tensor 是否为叶子 Tensor。