LostTech.TensorFlow : API Documentation

Type name_scope

Namespace tensorflow

Parent PythonObjectContainer

Interfaces Iname_scope, IContextManager<T>

A context manager for use when defining a Python op.

This context manager validates that the given `values` are from the same graph, makes that graph the default graph, and pushes a name scope in that graph (see tf.Graph.name_scope for more details on that).

For example, to define a new Python op called `my_op`:
Show Example
def my_op(a, b, c, name=None):
              with tf.name_scope(name, "MyOp", [a, b, c]) as scope:
                a = tf.convert_to_tensor(a, name="a")
                b = tf.convert_to_tensor(b, name="b")
                c = tf.convert_to_tensor(c, name="c")
                # Define some computation that uses `a`, `b`, and `c`.
                return foo_op(..., name=scope) 

Properties

Public properties

object name get;

object name_dyn get;

object PythonObject get;