public static long ToInt64(this TorchScalar value) { return(THSTorch_scalar_to_int64(value.Handle)); }
public static bool ToBoolean(this TorchScalar value) { return(THSTorch_scalar_to_bool(value.Handle)); }
public static int ToInt32(this TorchScalar value) { return(THSTorch_scalar_to_int32(value.Handle)); }
public static short ToInt16(this TorchScalar value) { return(THSTorch_scalar_to_int16(value.Handle)); }
public static byte ToByte(this TorchScalar value) { return(THSTorch_scalar_to_uint8(value.Handle)); }
public static double ToDouble(this TorchScalar value) { return(THSTorch_scalar_to_float64(value.Handle)); }
public static float ToSingle(this TorchScalar value) { return(THSTorch_scalar_to_float32(value.Handle)); }