3 void good_func(THFloatTensor *tensor,
int a,
float b)
5 THFloatTensor_mul(tensor, tensor, a);
6 THFloatTensor_add(tensor, tensor, b);
9 THFloatTensor * new_tensor(
int a)
11 THFloatTensor *t = THFloatTensor_newWithSize2d(a, a);
12 THFloatTensor_fill(t, a);
16 float int_to_float(
int a)