x = torch.rand(1,3)
print(x)
print(torch.min(x))
y = torch.rand(2,3)
print(y)
print(torch.min(y))
y = torch.rand(5,3)
print("***********")
print(y)
print("***********")
print(torch.max(y,0))
y = torch.rand(5,6)
print("***********")
print(y)
print("***********")
print(torch.max(y,1))
若不是相同大小结构,必须满足可广播
x = torch.rand(2,3)
y = torch.rand(2,3)
print("***********")
print(x)
print("***********")
print(y)
print("*****比较结果******")
print(torch.max(x,y))