예제 #1
0
 public static long ToInt64(this TorchScalar value)
 {
     return(THSTorch_scalar_to_int64(value.Handle));
 }
예제 #2
0
 public static bool ToBoolean(this TorchScalar value)
 {
     return(THSTorch_scalar_to_bool(value.Handle));
 }
예제 #3
0
 public static int ToInt32(this TorchScalar value)
 {
     return(THSTorch_scalar_to_int32(value.Handle));
 }
예제 #4
0
 public static short ToInt16(this TorchScalar value)
 {
     return(THSTorch_scalar_to_int16(value.Handle));
 }
예제 #5
0
 public static byte ToByte(this TorchScalar value)
 {
     return(THSTorch_scalar_to_uint8(value.Handle));
 }
예제 #6
0
 public static double ToDouble(this TorchScalar value)
 {
     return(THSTorch_scalar_to_float64(value.Handle));
 }
예제 #7
0
 public static float ToSingle(this TorchScalar value)
 {
     return(THSTorch_scalar_to_float32(value.Handle));
 }