using System;
using System.Collections.Generic;
using System.Text;
namespace Tensorflow
{
public static partial class tf
{
public static Tensor abs(Tensor x, string name = null)
=> math_ops.abs(x, name);
///
/// Computes acos of x element-wise.
///
///
///
///
public static Tensor acos(Tensor x, string name = null)
=> gen_math_ops.acos(x, name);
///
/// Computes asin of x element-wise.
///
///
///
///
public static Tensor asin(Tensor x, string name = null)
=> gen_math_ops.asin(x, name);
public static Tensor add(Tensor a, Tensor b)
=> gen_math_ops.add(a, b);
///
/// Computes atan of x element-wise.
///
///
///
///
public static Tensor atan(Tensor x, string name = null)
=> gen_math_ops.atan(x, name);
public static Tensor arg_max(Tensor input, int dimension, TF_DataType output_type = TF_DataType.TF_INT64, string name = null)
=> gen_math_ops.arg_max(input, dimension, output_type: output_type, name: name);
public static Tensor arg_min(Tensor input, int dimension, TF_DataType output_type = TF_DataType.TF_INT64, string name = null)
=> gen_math_ops.arg_min(input, dimension, output_type: output_type, name: name);
///
/// Returns element-wise smallest integer not less than x.
///
///
///
///
public static Tensor ceil(Tensor x, string name = null)
=> gen_math_ops.ceil(x, name);
///
/// Computes cos of x element-wise.
///
///
///
///
public static Tensor cos(Tensor x, string name = null)
=> gen_math_ops.cos(x, name);
///
/// Computes hyperbolic cosine of x element-wise.
///
///
///
///
public static Tensor cosh(Tensor x, string name = null)
=> gen_math_ops.cosh(x, name);
///
/// Returns element-wise largest integer not greater than x.
///
///
///
///
public static Tensor floor(Tensor x, string name = null)
=> gen_math_ops.floor(x, name);
///
/// Returns the truth value of (x > y) element-wise.
///
///
///
///
///
///
///
public static Tensor greater(Tx x, Ty y, string name = null)
=> gen_math_ops.greater(x, y, name);
///
/// Returns the truth value of (x >= y) element-wise.
///
///
///
///
///
///
///
public static Tensor greater_equal(Tx x, Ty y, string name = null)
=> gen_math_ops.greater_equal(x, y, name);
///
/// Returns the truth value of (x < y) element-wise.
///
///
///
///
///
///
///
public static Tensor less(Tx x, Ty y, string name = null)
=> gen_math_ops.less(x, y, name);
///
/// Returns the truth value of (x <= y) element-wise.
///
///
///
///
///
///
///
public static Tensor less_equal(Tx x, Ty y, string name = null)
=> gen_math_ops.less_equal(x, y, name);
///
/// Computes natural logarithm of (1 + x) element-wise.
///
///
///
///
public static Tensor log1p(Tensor x, string name = null)
=> gen_math_ops.log1p(x, name);
///
/// Clips tensor values to a specified min and max.
///
///
///
///
///
///
public static Tensor _clip_by_value(Tensor t, Tensor clip_value_min, Tensor clip_value_max, string name = null)
=> gen_math_ops._clip_by_value(t, clip_value_min, clip_value_max);
public static Tensor sub(Tensor a, Tensor b)
=> gen_math_ops.sub(a, b);
public static Tensor divide(Tensor a, Tensor b)
=> gen_math_ops.real_div(a, b);
public static Tensor sqrt(Tensor a, string name = null)
=> gen_math_ops.sqrt(a, name);
public static Tensor subtract(Tensor x, T[] y, string name = null) where T : struct
=> gen_math_ops.sub(x, ops.convert_to_tensor(y, dtype: x.dtype.as_base_dtype(), name: "y"), name);
public static Tensor log(Tensor x, string name = null)
=> gen_math_ops.log(x, name);
public static Tensor equal(Tensor x, Tensor y, string name = null)
=> gen_math_ops.equal(x, y, name);
///
/// Computes arctangent of `y/x` element-wise, respecting signs of the arguments.
///
///
///
///
///
public static Tensor atan2(Tensor y, Tensor x, string name = null)
=> gen_math_ops.atan2(y, x, name);
///
/// Computes the maximum of elements across dimensions of a tensor.
///
///
///
///
///
///
///
///
public static Tensor max(Tx input, Ty axis, bool keep_dims = false, string name = null)
=> gen_math_ops._max(input, axis, keep_dims: keep_dims, name: name);
///
/// Computes the minimum of elements across dimensions of a tensor.
///
///
///
///
///
///
///
///
public static Tensor min(Tx input, Ty axis, bool keep_dims = false, string name = null)
=> gen_math_ops._min(input, axis, keep_dims: keep_dims, name: name);
///
/// Returns the max of x and y (i.e. x > y ? x : y) element-wise.
///
///
///
///
///
///
///
public static Tensor maximum(T1 x, T2 y, string name = null)
=> gen_math_ops.maximum(x, y, name: name);
///
/// Returns the min of x and y (i.e. x < y ? x : y) element-wise.
///
///
///
///
///
///
///
public static Tensor minimum(T1 x, T2 y, string name = null)
=> gen_math_ops.minimum(x, y, name: name);
public static Tensor multiply(Tensor x, Tensor y)
=> gen_math_ops.mul(x, y);
public static Tensor negative(Tensor x, string name = null)
=> gen_math_ops.neg(x, name);
public static Tensor divide(Tensor x, T[] y, string name = null) where T : struct
=> x / ops.convert_to_tensor(y, dtype: x.dtype.as_base_dtype(), name: "y");
public static Tensor pow(T1 x, T2 y)
=> gen_math_ops.pow(x, y);
///
/// Computes the sum of elements across dimensions of a tensor.
///
///
///
///
public static Tensor reduce_sum(Tensor input, int? axis = null, int? reduction_indices = null)
{
if(!axis.HasValue && reduction_indices.HasValue)
return math_ops.reduce_sum(input, reduction_indices.Value);
return math_ops.reduce_sum(input);
}
public static Tensor reduce_sum(Tensor input, int axis, int? reduction_indices = null)
{
return math_ops.reduce_sum(input, axis);
}
public static Tensor reduce_mean(Tensor input_tensor, int[] axis = null, bool keepdims = false, string name = null, int? reduction_indices = null)
=> math_ops.reduce_mean(input_tensor, axis: axis, keepdims: keepdims, name: name, reduction_indices: reduction_indices);
public static Tensor cast(Tensor x, TF_DataType dtype = TF_DataType.DtInvalid, string name = null)
=> math_ops.cast(x, dtype, name);
public static Tensor argmax(Tensor input, int axis = -1, string name = null, int? dimension = null, TF_DataType output_type = TF_DataType.TF_INT64)
=> gen_math_ops.arg_max(input, axis, name: name, output_type: output_type);
}
}