Helpers

public abstract class Helpers

Container class for core methods which add or perform several operations and return one of them.

Public Methods

static <T extends TType> Variable<T>
createVariableWithInit(Scope scope, Operand<T> init, Options... options)
Factory method to create a new Variable with it's initializer.

Inherited Methods

Public Methods

public static Variable<T> createVariableWithInit (Scope scope, Operand<T> init, Options... options)

Factory method to create a new Variable with it's initializer.

Only supported on Graph sessions as the Assign op does not work in an EagerSession.

Parameters
scope current scope
init The op to use to initialise this variable.
options carries optional attributes values
Returns
  • a new instance of Variable