KGraph
A wrapper object to extend functionality and behaviour of static TensorFlow graph.
It tracks all model variables (used in optimizers or layers) and its initializers.
Parameters
graphDef
A serialized representation of the graph.
prefix
A prefix that will be prepended to names in graphDef.
Constructors
Functions
addOptimizerVariable
Link copied to clipboard
Adds a variable used in optimizer to the pool of tracked variables.
addOptimizerVariableAssignAddInitializer
Link copied to clipboard
fun addOptimizerVariableAssignAddInitializer(initializer: AssignAdd<Float>)
Content copied to clipboard
Adds an optimizer initializer of special 'AssignAdd' type for optimizer variable tracked in KGraph.
addOptimizerVariableInitializer
Link copied to clipboard
Adds an optimizer initializer for optimizer variable tracked in KGraph.
initializeOptimizerVariables
Link copied to clipboard
Initializes TensorFlow graph variables used in optimizer.
optimizerVariables
Link copied to clipboard
Returns all variables used in optimizer and initialized by Assign TensorFlow operand.
variableNames
Link copied to clipboard
Returns list of variable names in TensorFlow graph.