LostTech.TensorFlow : API Documentation

Type util

Namespace tensorflow.contrib.solvers.util

Public static methods

object create_operator(IGraphNodeBase matrix)

object create_operator_dyn(object matrix)

object dot_dyn(object x, object y)

Multiplies 2 tensors (and/or variables) and returns a *tensor*.

When attempting to multiply a nD tensor with a nD tensor, it reproduces the Theano behavior. (e.g. `(2, 3) * (4, 3, 5) -> (2, 4, 5)`)
Parameters
object x
Tensor or variable.
object y
Tensor or variable.
Returns
object
A tensor, dot product of `x` and `y`.

Examples: ```python # dot product between tensors >>> x = K.placeholder(shape=(2, 3)) >>> y = K.placeholder(shape=(3, 4)) >>> xy = K.dot(x, y) >>> xy ```

```python # dot product between tensors >>> x = K.placeholder(shape=(32, 28, 3)) >>> y = K.placeholder(shape=(3, 4)) >>> xy = K.dot(x, y) >>> xy ```

```python # Theano-like behavior example >>> x = K.random_uniform_variable(shape=(2, 3), low=0, high=1) >>> y = K.ones((4, 3, 5)) >>> xy = K.dot(x, y) >>> K.int_shape(xy) (2, 4, 5) ```

object identity_operator(IGraphNodeBase matrix)

object identity_operator_dyn(object matrix)

object l2norm(ValueTuple<IEnumerable<object>, object> v)

object l2norm(IEnumerable<object> v)

object l2norm(bool v)

object l2norm(IGraphNodeBase v)

object l2norm(int v)

object l2norm_dyn(object v)

object l2norm_squared(IGraphNodeBase v)

object l2norm_squared(IEnumerable<object> v)

object l2norm_squared(bool v)

object l2norm_squared(int v)

object l2norm_squared(ValueTuple<IEnumerable<object>, object> v)

object l2norm_squared_dyn(object v)

object l2normalize(bool v)

object l2normalize(IEnumerable<object> v)

object l2normalize(ValueTuple<IEnumerable<object>, object> v)

object l2normalize(int v)

object l2normalize(IGraphNodeBase v)

object l2normalize_dyn(object v)

Public properties

PythonFunctionContainer create_operator_fn get;

PythonFunctionContainer identity_operator_fn get;

PythonFunctionContainer l2norm_fn get;

PythonFunctionContainer l2norm_squared_fn get;

PythonFunctionContainer l2normalize_fn get;