LostTech.TensorFlow : API Documentation

Type v2

Namespace tensorflow.compat.v2

Methods

Properties

Public static methods

Tensor argmax(IGraphNodeBase input, IGraphNodeBase axis, ImplicitContainer<T> output_type, string name)

Tensor argmax(IGraphNodeBase input, IGraphNodeBase axis, ndarray output_type, string name)

object argmax_dyn(object input, object axis, ImplicitContainer<T> output_type, object name)

Tensor argmin(IGraphNodeBase input, IGraphNodeBase axis, ndarray output_type, string name)

Tensor argmin(IGraphNodeBase input, IGraphNodeBase axis, ImplicitContainer<T> output_type, string name)

object argmin_dyn(object input, object axis, ImplicitContainer<T> output_type, object name)

Tensor batch_to_space(IGraphNodeBase input, IGraphNodeBase block_shape, IGraphNodeBase crops, string name)

object batch_to_space_dyn(object input, object block_shape, object crops, object name)

object boolean_mask(IGraphNodeBase tensor, IGraphNodeBase mask, object axis, string name)

object boolean_mask_dyn(object tensor, object mask, object axis, ImplicitContainer<T> name)

object case(object pred_fn_pairs, object default, bool exclusive, bool strict, string name)

object cond(object pred, PythonFunctionContainer true_fn, PythonFunctionContainer false_fn, string name)

object cond_dyn(object pred, object true_fn, object false_fn, object name)

Tensor constant(object value, PythonClassContainer dtype, TensorShape shape, string name)

Tensor constant(object value, DType dtype, TensorShape shape, string name)

object constant_dyn(object value, object dtype, object shape, ImplicitContainer<T> name)

Tensor convert_to_tensor(object value, DType dtype, DType dtype_hint, string name)

Tensor convert_to_tensor(object value, PythonClassContainer dtype, DType dtype_hint, string name)

Tensor convert_to_tensor(IEnumerable<IGraphNodeBase> value, PythonClassContainer dtype, DType dtype_hint, string name)

Tensor convert_to_tensor(IEnumerable<IGraphNodeBase> value, DType dtype, DType dtype_hint, string name)

Tensor convert_to_tensor(PythonFunctionContainer value, PythonClassContainer dtype, DType dtype_hint, string name)

Tensor convert_to_tensor(PythonFunctionContainer value, DType dtype, DType dtype_hint, string name)

object convert_to_tensor_dyn(object value, object dtype, object dtype_hint, object name)

Tensor expand_dims(IGraphNodeBase input, IEnumerable<int> axis, string name)

Tensor expand_dims(IGraphNodeBase input, int axis, string name)

Tensor expand_dims(IGraphNodeBase input, IGraphNodeBase axis, string name)

object expand_dims_dyn(object input, object axis, object name)

Inserts a dimension of 1 into a tensor's shape.

Given a tensor `sp_input`, this operation inserts a dimension of 1 at the dimension index `axis` of `sp_input`'s shape. The dimension index `axis` starts at zero; if you specify a negative number for `axis` it is counted backwards from the end.
Parameters
object input
object axis
0-D (scalar). Specifies the dimension index at which to expand the shape of `input`. Must be in the range `[-rank(sp_input) - 1, rank(sp_input)]`.
object name
The name of the output `SparseTensor`.
Returns
object
A `SparseTensor` with the same data as `sp_input`, but its shape has an additional dimension of size 1 added.

Tensor gather(object params, object indices, object validate_indices, object axis, int batch_dims, string name)

object gather_dyn(object params, object indices, object validate_indices, object axis, ImplicitContainer<T> batch_dims, object name)

Tensor gather_nd(object params, object indices, int batch_dims, string name)

object gather_nd_dyn(object params, object indices, ImplicitContainer<T> batch_dims, object name)

IList<Tensor> gradients(object ys, object xs, object grad_ys, string name, bool gate_gradients, object aggregation_method, object stop_gradients, ImplicitContainer<T> unconnected_gradients)

object gradients_dyn(object ys, object xs, object grad_ys, ImplicitContainer<T> name, ImplicitContainer<T> gate_gradients, object aggregation_method, object stop_gradients, ImplicitContainer<T> unconnected_gradients)

IList<Tensor> hessians(object ys, object xs, bool gate_gradients, object aggregation_method, string name)

object hessians_dyn(object ys, object xs, ImplicitContainer<T> gate_gradients, object aggregation_method, ImplicitContainer<T> name)

object norm(object tensor, string ord, object axis, object keepdims, string name)

object norm_dyn(object tensor, ImplicitContainer<T> ord, object axis, object keepdims, object name)

Tensor ones_like(IGraphNodeBase input, DType dtype, string name)

Instantiates an all-ones variable of the same shape as another tensor.
Parameters
IGraphNodeBase input
DType dtype
String, dtype of returned Keras variable. None uses the dtype of x.
string name
String, name for the variable to create.
Returns
Tensor
A Keras variable with the shape of x filled with ones.

Example: ```python >>> from keras import backend as K >>> kvar = K.variable(np.random.random((2,3))) >>> kvar_ones = K.ones_like(kvar) >>> K.eval(kvar_ones) array([[ 1., 1., 1.], [ 1., 1., 1.]], dtype=float32) ```

object ones_like_dyn(object input, object dtype, object name)

Instantiates an all-ones variable of the same shape as another tensor.
Parameters
object input
object dtype
String, dtype of returned Keras variable. None uses the dtype of x.
object name
String, name for the variable to create.
Returns
object
A Keras variable with the shape of x filled with ones.

Example: ```python >>> from keras import backend as K >>> kvar = K.variable(np.random.random((2,3))) >>> kvar_ones = K.ones_like(kvar) >>> K.eval(kvar_ones) array([[ 1., 1., 1.], [ 1., 1., 1.]], dtype=float32) ```

Tensor pad(IGraphNodeBase tensor, IGraphNodeBase paddings, string mode, int constant_values, string name)

object pad_dyn(object tensor, object paddings, ImplicitContainer<T> mode, ImplicitContainer<T> constant_values, object name)

Tensor reduce_all(IEnumerable<object> input_tensor, IEnumerable<int> axis, Nullable<bool> keepdims, string name)

Tensor reduce_all(IEnumerable<object> input_tensor, int axis, Nullable<bool> keepdims, string name)

Tensor reduce_all(IEnumerable<object> input_tensor, IGraphNodeBase axis, Nullable<bool> keepdims, string name)

Tensor reduce_all(object input_tensor, IEnumerable<int> axis, Nullable<bool> keepdims, string name)

Tensor reduce_all(object input_tensor, int axis, Nullable<bool> keepdims, string name)

Tensor reduce_all(object input_tensor, IGraphNodeBase axis, Nullable<bool> keepdims, string name)

object reduce_all_dyn(object input_tensor, object axis, ImplicitContainer<T> keepdims, object name)

Tensor reduce_any(ValueTuple<PythonClassContainer, PythonClassContainer> input_tensor, IGraphNodeBase axis, Nullable<bool> keepdims, string name)

Tensor reduce_any(IGraphNodeBase input_tensor, IGraphNodeBase axis, Nullable<bool> keepdims, string name)

Tensor reduce_any(IEnumerable<bool> input_tensor, IGraphNodeBase axis, Nullable<bool> keepdims, string name)

Tensor reduce_any(IEnumerator<bool> input_tensor, IEnumerable<int> axis, Nullable<bool> keepdims, string name)

Tensor reduce_any(ValueTuple<PythonClassContainer, PythonClassContainer> input_tensor, int axis, Nullable<bool> keepdims, string name)

Tensor reduce_any(IEnumerator<bool> input_tensor, int axis, Nullable<bool> keepdims, string name)

Tensor reduce_any(IEnumerator<bool> input_tensor, IGraphNodeBase axis, Nullable<bool> keepdims, string name)

Tensor reduce_any(IEnumerable<bool> input_tensor, int axis, Nullable<bool> keepdims, string name)

Tensor reduce_any(ValueTuple<PythonClassContainer, PythonClassContainer> input_tensor, IEnumerable<int> axis, Nullable<bool> keepdims, string name)

Tensor reduce_any(IGraphNodeBase input_tensor, IEnumerable<int> axis, Nullable<bool> keepdims, string name)

Tensor reduce_any(IGraphNodeBase input_tensor, int axis, Nullable<bool> keepdims, string name)

Tensor reduce_any(bool input_tensor, IEnumerable<int> axis, Nullable<bool> keepdims, string name)

Tensor reduce_any(bool input_tensor, int axis, Nullable<bool> keepdims, string name)

Tensor reduce_any(bool input_tensor, IGraphNodeBase axis, Nullable<bool> keepdims, string name)

Tensor reduce_any(IndexedSlices input_tensor, IEnumerable<int> axis, Nullable<bool> keepdims, string name)

Tensor reduce_any(IndexedSlices input_tensor, IGraphNodeBase axis, Nullable<bool> keepdims, string name)

Tensor reduce_any(IEnumerable<bool> input_tensor, IEnumerable<int> axis, Nullable<bool> keepdims, string name)

Tensor reduce_any(IndexedSlices input_tensor, int axis, Nullable<bool> keepdims, string name)

object reduce_any_dyn(object input_tensor, object axis, ImplicitContainer<T> keepdims, object name)

object reduce_logsumexp(double input_tensor, IEnumerable<int> axis, Nullable<bool> keepdims, string name)

object reduce_logsumexp(double input_tensor, int axis, Nullable<bool> keepdims, string name)

object reduce_logsumexp(ValueTuple<PythonClassContainer, PythonClassContainer> input_tensor, IEnumerable<int> axis, Nullable<bool> keepdims, string name)

object reduce_logsumexp(IEnumerable<object> input_tensor, int axis, Nullable<bool> keepdims, string name)

object reduce_logsumexp(ValueTuple<PythonClassContainer, PythonClassContainer> input_tensor, int axis, Nullable<bool> keepdims, string name)

object reduce_logsumexp(IGraphNodeBase input_tensor, IEnumerable<int> axis, Nullable<bool> keepdims, string name)

object reduce_logsumexp(IGraphNodeBase input_tensor, int axis, Nullable<bool> keepdims, string name)

object reduce_logsumexp(IEnumerable<object> input_tensor, IEnumerable<int> axis, Nullable<bool> keepdims, string name)

object reduce_logsumexp_dyn(object input_tensor, object axis, ImplicitContainer<T> keepdims, object name)

Tensor reduce_max(object input_tensor, ValueTuple<object, IEnumerable<object>> axis, Nullable<bool> keepdims, string name)

Tensor reduce_max(object input_tensor, IEnumerable<object> axis, Nullable<bool> keepdims, string name)

Tensor reduce_max(object input_tensor, ndarray axis, Nullable<bool> keepdims, string name)

Tensor reduce_max(IEnumerable<object> input_tensor, object axis, Nullable<bool> keepdims, string name)

Tensor reduce_max(IEnumerable<object> input_tensor, IGraphNodeBase axis, Nullable<bool> keepdims, string name)

Tensor reduce_max(IEnumerable<object> input_tensor, int axis, Nullable<bool> keepdims, string name)

Tensor reduce_max(IEnumerable<object> input_tensor, ValueTuple<object, IEnumerable<object>> axis, Nullable<bool> keepdims, string name)

Tensor reduce_max(IEnumerable<object> input_tensor, IEnumerable<object> axis, Nullable<bool> keepdims, string name)

Tensor reduce_max(IEnumerable<object> input_tensor, ndarray axis, Nullable<bool> keepdims, string name)

Tensor reduce_max(object input_tensor, IGraphNodeBase axis, Nullable<bool> keepdims, string name)

Tensor reduce_max(object input_tensor, object axis, Nullable<bool> keepdims, string name)

Tensor reduce_max(object input_tensor, int axis, Nullable<bool> keepdims, string name)

object reduce_max_dyn(object input_tensor, object axis, ImplicitContainer<T> keepdims, object name)

Tensor reduce_mean(object input_tensor, IEnumerable<int> axis, Nullable<bool> keepdims, string name)

Tensor reduce_mean(object input_tensor, IGraphNodeBase axis, Nullable<bool> keepdims, string name)

Tensor reduce_mean(object input_tensor, int axis, Nullable<bool> keepdims, string name)

Tensor reduce_mean(PythonClassContainer input_tensor, IGraphNodeBase axis, Nullable<bool> keepdims, string name)

Tensor reduce_mean(PythonClassContainer input_tensor, int axis, Nullable<bool> keepdims, string name)

Tensor reduce_mean(PythonClassContainer input_tensor, IEnumerable<int> axis, Nullable<bool> keepdims, string name)

Tensor reduce_mean(IEnumerable<IGraphNodeBase> input_tensor, IGraphNodeBase axis, Nullable<bool> keepdims, string name)

Tensor reduce_mean(IEnumerable<IGraphNodeBase> input_tensor, int axis, Nullable<bool> keepdims, string name)

Tensor reduce_mean(IEnumerable<IGraphNodeBase> input_tensor, IEnumerable<int> axis, Nullable<bool> keepdims, string name)

object reduce_mean_dyn(object input_tensor, object axis, ImplicitContainer<T> keepdims, object name)

Tensor reduce_min(object input_tensor, object axis, Nullable<bool> keepdims, string name)

Tensor reduce_min(object input_tensor, IGraphNodeBase axis, Nullable<bool> keepdims, string name)

Tensor reduce_min(object input_tensor, ValueTuple<object, IEnumerable<object>> axis, Nullable<bool> keepdims, string name)

Tensor reduce_min(object input_tensor, IEnumerable<object> axis, Nullable<bool> keepdims, string name)

Tensor reduce_min(object input_tensor, ndarray axis, Nullable<bool> keepdims, string name)

Tensor reduce_min(object input_tensor, int axis, Nullable<bool> keepdims, string name)

object reduce_min_dyn(object input_tensor, object axis, ImplicitContainer<T> keepdims, object name)

Tensor reduce_prod(object input_tensor, ndarray axis, Nullable<bool> keepdims, string name)

Tensor reduce_prod(object input_tensor, IEnumerable<object> axis, Nullable<bool> keepdims, string name)

Tensor reduce_prod(object input_tensor, ValueTuple<object, IEnumerable<object>> axis, Nullable<bool> keepdims, string name)

Tensor reduce_prod(object input_tensor, int axis, Nullable<bool> keepdims, string name)

Tensor reduce_prod(object input_tensor, IGraphNodeBase axis, Nullable<bool> keepdims, string name)

Tensor reduce_prod(object input_tensor, object axis, Nullable<bool> keepdims, string name)

object reduce_prod_dyn(object input_tensor, object axis, ImplicitContainer<T> keepdims, object name)

Tensor reduce_sum(object input_tensor, PythonClassContainer axis, Nullable<bool> keepdims, string name)

Tensor reduce_sum(object input_tensor, object axis, Nullable<bool> keepdims, string name)

Tensor reduce_sum(PythonClassContainer input_tensor, object axis, Nullable<bool> keepdims, string name)

Tensor reduce_sum(PythonClassContainer input_tensor, object axis, Nullable<bool> keepdims, PythonFunctionContainer name)

Tensor reduce_sum(PythonClassContainer input_tensor, PythonClassContainer axis, Nullable<bool> keepdims, string name)

Tensor reduce_sum(IEnumerable<object> input_tensor, PythonClassContainer axis, Nullable<bool> keepdims, PythonFunctionContainer name)

Tensor reduce_sum(object input_tensor, object axis, Nullable<bool> keepdims, PythonFunctionContainer name)

Tensor reduce_sum(IEnumerable<IGraphNodeBase> input_tensor, object axis, Nullable<bool> keepdims, string name)

Tensor reduce_sum(IEnumerable<IGraphNodeBase> input_tensor, object axis, Nullable<bool> keepdims, PythonFunctionContainer name)

Tensor reduce_sum(IEnumerable<IGraphNodeBase> input_tensor, PythonClassContainer axis, Nullable<bool> keepdims, string name)

Tensor reduce_sum(PythonClassContainer input_tensor, PythonClassContainer axis, Nullable<bool> keepdims, PythonFunctionContainer name)

Tensor reduce_sum(object input_tensor, PythonClassContainer axis, Nullable<bool> keepdims, PythonFunctionContainer name)

object reduce_sum_dyn(object input_tensor, object axis, ImplicitContainer<T> keepdims, object name)

Tensor reverse_sequence(IGraphNodeBase input, object seq_lengths, Nullable<int> seq_axis, Nullable<int> batch_axis, string name)

object reverse_sequence_dyn(object input, object seq_lengths, object seq_axis, object batch_axis, object name)

object scalar_mul(object scalar, object x, string name)

Tensor shape(ValueTuple<PythonClassContainer, PythonClassContainer> input, ImplicitContainer<T> out_type, string name)

Tensor shape(string input, ImplicitContainer<T> out_type, string name)

Tensor shape(object input, ImplicitContainer<T> out_type, string name)

Tensor shape(IGraphNodeBase input, ImplicitContainer<T> out_type, string name)

Tensor shape(IndexedSlices input, ImplicitContainer<T> out_type, string name)

Tensor shape(IEnumerable<int> input, ImplicitContainer<T> out_type, string name)

object shape_dyn(object input, ImplicitContainer<T> out_type, object name)

Tensor size(object input, ImplicitContainer<T> out_type, string name)

object size_dyn(object input, ImplicitContainer<T> out_type, object name)

Tensor space_to_batch(object input, object block_shape, object paddings, string name)

object space_to_batch_dyn(object input, object block_shape, object paddings, object name)

Tensor squeeze(IGraphNodeBase input, object axis, string name)

object squeeze_dyn(object input, object axis, object name)

Tensor transpose(IGraphNodeBase a, object perm, bool conjugate, string name)

IList<object> tuple(object tensors, object control_inputs, string name)

object while_loop(object cond, object body, ValueTuple<int, IGraphNodeBase> loop_vars, object shape_invariants, int parallel_iterations, bool back_prop, bool swap_memory, object maximum_iterations, string name)

object while_loop(object cond, object body, IEnumerable<object> loop_vars, object shape_invariants, int parallel_iterations, bool back_prop, bool swap_memory, object maximum_iterations, string name)

object while_loop_dyn(object cond, object body, object loop_vars, object shape_invariants, ImplicitContainer<T> parallel_iterations, ImplicitContainer<T> back_prop, ImplicitContainer<T> swap_memory, object maximum_iterations, object name)

Tensor zeros_like(IGraphNodeBase input, DType dtype, string name)

Instantiates an all-zeros variable of the same shape as another tensor.
Parameters
IGraphNodeBase input
DType dtype
dtype of returned Keras variable. `None` uses the dtype of `x`.
string name
name for the variable to create.
Returns
Tensor
A Keras variable with the shape of `x` filled with zeros.

Example:

```python from tensorflow.keras import backend as K kvar = K.variable(np.random.random((2,3))) kvar_zeros = K.zeros_like(kvar) K.eval(kvar_zeros) # array([[ 0., 0., 0.], [ 0., 0., 0.]], dtype=float32) ```

object zeros_like_dyn(object input, object dtype, object name)

Instantiates an all-zeros variable of the same shape as another tensor.
Parameters
object input
object dtype
dtype of returned Keras variable. `None` uses the dtype of `x`.
object name
name for the variable to create.
Returns
object
A Keras variable with the shape of `x` filled with zeros.

Example:

```python from tensorflow.keras import backend as K kvar = K.variable(np.random.random((2,3))) kvar_zeros = K.zeros_like(kvar) K.eval(kvar_zeros) # array([[ 0., 0., 0.], [ 0., 0., 0.]], dtype=float32) ```

Public properties

PythonFunctionContainer argmax_fn_ get;

PythonFunctionContainer argmin_fn_ get;

PythonFunctionContainer batch_to_space_fn_ get;

PythonFunctionContainer boolean_mask_fn_ get;

PythonFunctionContainer case_fn_ get;

PythonFunctionContainer cond_fn_ get;

PythonFunctionContainer constant_fn get;

PythonFunctionContainer convert_to_tensor_fn_ get;

PythonFunctionContainer device_fn_ get;

PythonFunctionContainer expand_dims_fn_ get;

PythonFunctionContainer gather_fn_ get;

PythonFunctionContainer gather_nd_fn_ get;

PythonFunctionContainer gradients_fn_ get;

PythonFunctionContainer hessians_fn_ get;

PythonFunctionContainer norm_fn_ get;

PythonFunctionContainer ones_like_fn_ get;

PythonFunctionContainer reduce_all_fn get;

PythonFunctionContainer reduce_any_fn get;

PythonFunctionContainer reduce_logsumexp_fn get;

PythonFunctionContainer reduce_max_fn get;

PythonFunctionContainer reduce_mean_fn get;

PythonFunctionContainer reduce_min_fn get;

PythonFunctionContainer reduce_prod_fn get;

PythonFunctionContainer reduce_sum_fn get;

PythonFunctionContainer reverse_sequence_fn_ get;

PythonFunctionContainer scalar_mul_fn_ get;

PythonFunctionContainer shape_fn_ get;

PythonFunctionContainer size_fn_ get;

PythonFunctionContainer space_to_batch_fn_ get;

PythonFunctionContainer squeeze_fn_ get;

PythonFunctionContainer transpose_fn_ get;

PythonFunctionContainer tuple_fn_ get;

PythonFunctionContainer while_loop_fn_ get;

PythonFunctionContainer zeros_like_fn_ get;