摘要: 在包括但不限于pytorch的许多函数中 可以有object.method()与method(object)两种写法。 例如 x = torch.Tensor([[1,2,3,4]]) x.squeeze(0)torch.squeeze(x, 0)我们做试验:一。 import torchx = t 阅读全文
posted @ 2020-11-07 16:34 乌蝇哥 阅读(505) 评论(0) 推荐(0)