| @@ -63,6 +63,48 @@ namespace Tensorflow | |||
| public static Tensor cos(Tensor x, string name = null) | |||
| => gen_math_ops.cos(x, name); | |||
| /// <summary> | |||
| /// Computes hyperbolic cosine of x element-wise. | |||
| /// </summary> | |||
| /// <param name="x"></param> | |||
| /// <param name="name"></param> | |||
| /// <returns></returns> | |||
| public static Tensor cosh(Tensor x, string name = null) | |||
| => gen_math_ops.cosh(x, name); | |||
| /// <summary> | |||
| /// Returns element-wise largest integer not greater than x. | |||
| /// </summary> | |||
| /// <param name="x"></param> | |||
| /// <param name="name"></param> | |||
| /// <returns></returns> | |||
| public static Tensor floor(Tensor x, string name = null) | |||
| => gen_math_ops.floor(x, name); | |||
| /// <summary> | |||
| /// Returns the truth value of (x > y) element-wise. | |||
| /// </summary> | |||
| /// <typeparam name="Tx"></typeparam> | |||
| /// <typeparam name="Ty"></typeparam> | |||
| /// <param name="x"></param> | |||
| /// <param name="y"></param> | |||
| /// <param name="name"></param> | |||
| /// <returns></returns> | |||
| public static Tensor greater<Tx, Ty>(Tx x, Ty y, string name = null) | |||
| => gen_math_ops.greater(x, y, name); | |||
| /// <summary> | |||
| /// Returns the truth value of (x >= y) element-wise. | |||
| /// </summary> | |||
| /// <typeparam name="Tx"></typeparam> | |||
| /// <typeparam name="Ty"></typeparam> | |||
| /// <param name="x"></param> | |||
| /// <param name="y"></param> | |||
| /// <param name="name"></param> | |||
| /// <returns></returns> | |||
| public static Tensor greater_equal<Tx, Ty>(Tx x, Ty y, string name = null) | |||
| => gen_math_ops.greater_equal(x, y, name); | |||
| /// <summary> | |||
| /// Clips tensor values to a specified min and max. | |||
| /// </summary> | |||
| @@ -26,13 +26,6 @@ namespace Tensorflow | |||
| return _op.outputs[0]; | |||
| } | |||
| public static Tensor greater<Tx, Ty>(Tx x, Ty y, string name = null) | |||
| { | |||
| var _op = _op_def_lib._apply_op_helper("Greater", name: name, args: new { x, y }); | |||
| return _op.outputs[0]; | |||
| } | |||
| public static Tensor less<Tx, Ty>(Tx x, Ty y, string name = null) | |||
| { | |||
| var _op = _op_def_lib._apply_op_helper("Less", name: name, args: new { x, y }); | |||
| @@ -100,6 +100,20 @@ namespace Tensorflow | |||
| return _op.outputs[0]; | |||
| } | |||
| public static Tensor cosh(Tensor x, string name = null) | |||
| { | |||
| var _op = _op_def_lib._apply_op_helper("Cosh", name, args: new { x }); | |||
| return _op.outputs[0]; | |||
| } | |||
| public static Tensor floor(Tensor x, string name = null) | |||
| { | |||
| var _op = _op_def_lib._apply_op_helper("Floor", name, args: new { x }); | |||
| return _op.outputs[0]; | |||
| } | |||
| public static Tensor _clip_by_value(Tensor t, Tensor clip_value_min, Tensor clip_value_max, string name = null) | |||
| { | |||
| var _op = _op_def_lib._apply_op_helper("ClipByValue", name, args: new { t, clip_value_min, clip_value_max }); | |||
| @@ -107,6 +121,20 @@ namespace Tensorflow | |||
| return _op.outputs[0]; | |||
| } | |||
| public static Tensor greater<Tx, Ty>(Tx x, Ty y, string name = null) | |||
| { | |||
| var _op = _op_def_lib._apply_op_helper("Greater", name: name, args: new { x, y }); | |||
| return _op.outputs[0]; | |||
| } | |||
| public static Tensor greater_equal<Tx, Ty>(Tx x, Ty y, string name = null) | |||
| { | |||
| var _op = _op_def_lib._apply_op_helper("GreaterEqual", name: name, args: new { x, y }); | |||
| return _op.outputs[0]; | |||
| } | |||
| public static Tensor squared_difference(Tensor x, Tensor y, string name = null) | |||
| { | |||
| var _op = _op_def_lib._apply_op_helper("SquaredDifference", name, args: new { x, y, name }); | |||