Object/Class

org.platanios.tensorflow.api.core

Graph

Related Docs: class Graph | package core

Permalink

object Graph

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Graph
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. trait Key[K] extends AnyRef

    Permalink

    Key to a graph collection.

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. object Keys

    Permalink

    Contains standard names to use for graph collections.

    Contains standard names to use for graph collections.

    The standard library uses various well-known names to collect and retrieve values associated with a graph. For example, the optimizers default to optimizing the variables collected under Graph.Keys.TRAINABLE_VARIABLES if none is specified, but it is also possible to pass an explicit list of variables.

    Note: Whenever a new key is added, appropriate edits need to be made to the Keys.fromName function.

  5. def apply(): Graph

    Permalink

    Constructs and returns an empty new graph.

  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def copyMetaGraph(fromGraph: Graph, toGraph: Graph, fromScope: String, toScope: String): Unit

    Permalink

    Copies a graph and its meta-information from fromGraph to toGraph, according to the provided scopes.

    Copies a graph and its meta-information from fromGraph to toGraph, according to the provided scopes.

    fromGraph

    From/source graph.

    toGraph

    To/destination graph.

    fromScope

    From/source name scope. Only ops within this name scope are copied.

    toScope

    To/destination name scope. The copied ops are placed under this name scope in toGraph.

  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def fromGraphDef(graphDef: GraphDef, importScope: String = null): Graph

    Permalink

    Imports a graph from the provided serialized graph object.

    Imports a graph from the provided serialized graph object.

    graphDef

    Serialized representation of the graph that will be imported.

    importScope

    Optional prefix that will be prepended to all node names in the graph that is being imported to this graph.

    returns

    Constructed Graph object.

  13. def fromMetaGraphDef(metaGraphDef: MetaGraphDef, importScope: String = null, clearDevices: Boolean = false, unboundInputsCollectionKey: Key[String] = Graph.Keys.UNBOUND_INPUTS, restoreCollectionsPredicate: (Key[_]) ⇒ Boolean = _ => true): Graph

    Permalink

    Imports a graph and its meta-information from the provided serialized graph meta-information object.

    Imports a graph and its meta-information from the provided serialized graph meta-information object.

    This function takes a MetaGraphDef protocol buffer as input and it adds all the nodes from its graph_def field to a new graph. It also recreates the desired collections stored in that protocol buffer.

    In combination with Graph.toMetaGraphDef, this function can be used to:

    • Serialize a graph along with other objects stored in its collections, into a MetaGraphDef.
    • Restart training from saved graphs and checkpoints.
    • Run inference from saved graphs and checkpoints.
    metaGraphDef

    Serialized representation of the graph and its meta-information, that will be imported into the new graph.

    importScope

    Optional prefix that will be prepended to all node names in the graph that is being imported to the new graph.

    clearDevices

    Boolean value indicating whether to clear the device information from the returned node definition.

    unboundInputsCollectionKey

    Collection key for looking up unbound inputs.

    restoreCollectionsPredicate

    Function that takes as input a graph collection key and returns a boolean value indicating whether or not to load that collection. Note that the collection specified by unboundInputsCollectionKey is never loaded. Defaults to a function that returns true for all inputs.

    returns

    Constructed Graph object.

  14. def fromProto(graphDef: GraphDef, importScope: String = null): Graph

    Permalink

    Imports a graph from the provided serialized graph object.

    Imports a graph from the provided serialized graph object.

    graphDef

    Serialized representation of the graph that will be imported.

    importScope

    Optional prefix that will be prepended to all node names in the graph that is being imported to this graph.

    returns

    Constructed Graph object.

  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  16. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  22. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  23. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped