You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- import torch
-
-
- a = torch.tensor([1, 2, 3, 4, 3.5])
- f = 1.0 * a.sum() / 10.0
- print("f = %f" % f)
|