public  final   class
      GradientDef
 GradientDef defines the gradient function of a function defined in
 a function library.
 A gradient function g (specified by gradient_func) for a function f
 (specified by function_name) must follow the following:
 The function 'f' must be a numerical function which takes N inputs
 and produces M outputs. Its gradient function 'g', which is a
 function taking N + M inputs and produces N outputs.
 I.e. if we have
    (y1, y2, ..., y_M) = f(x1, x2, ..., x_N),
 then, g is
    (dL/dx1, dL/dx2, ..., dL/dx_N) = g(x1, x2, ..., x_N,
                                      dL/dy1, dL/dy2, ..., dL/dy_M),
 where L is a scalar-value function of (x1, x2, ..., xN) (e.g., the
 loss function). dL/dx_i is the partial derivative of L with respect
 to x_i.
 tensorflow.GradientDef
Nested Classes
| class | GradientDef.Builder | GradientDef defines the gradient function of a function defined in a function library. | |
Constants
| int | FUNCTION_NAME_FIELD_NUMBER | |
| int | GRADIENT_FUNC_FIELD_NUMBER | 
Public Methods
| boolean | 
equals(Object obj)
                
               | 
| static GradientDef | |
| GradientDef | |
| final static com.google.protobuf.Descriptors.Descriptor | |
| String | 
getFunctionName()
                
                   The function name. | 
| com.google.protobuf.ByteString | 
getFunctionNameBytes()
                
                   The function name. | 
| String | 
getGradientFunc()
                
                   The gradient function's name. | 
| com.google.protobuf.ByteString | 
getGradientFuncBytes()
                
                   The gradient function's name. | 
|  | |
| int | |
| final com.google.protobuf.UnknownFieldSet | |
| int | 
hashCode()
                
               | 
| final boolean | |
| static GradientDef.Builder | 
newBuilder(GradientDef prototype)
                
               | 
| static GradientDef.Builder | |
| GradientDef.Builder | |
| static GradientDef | 
parseDelimitedFrom(InputStream input)
                
               | 
| static GradientDef | 
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                
               | 
| static GradientDef | 
parseFrom(ByteBuffer data)
                
               | 
| static GradientDef | 
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                
               | 
| static GradientDef | 
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                
               | 
| static GradientDef | 
parseFrom(com.google.protobuf.CodedInputStream input)
                
               | 
| static GradientDef | 
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                
               | 
| static GradientDef | 
parseFrom(com.google.protobuf.ByteString data)
                
               | 
| static GradientDef | 
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                
               | 
| static GradientDef | 
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                
               | 
| static | 
parser()
                
               | 
| GradientDef.Builder | |
| void | 
writeTo(com.google.protobuf.CodedOutputStream output)
                
               | 
Inherited Methods
Constants
public static final int FUNCTION_NAME_FIELD_NUMBER
Constant Value: 
                
                    1
                
            
public static final int GRADIENT_FUNC_FIELD_NUMBER
Constant Value: 
                
                    2
                
            
Public Methods
public boolean equals (Object obj)
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
public String getFunctionName ()
The function name.
string function_name = 1;
public com.google.protobuf.ByteString getFunctionNameBytes ()
The function name.
string function_name = 1;
public String getGradientFunc ()
The gradient function's name.
string gradient_func = 2;
public com.google.protobuf.ByteString getGradientFuncBytes ()
The gradient function's name.
string gradient_func = 2;
            public
            
            
            
            
            
 
getParserForType
()
public int getSerializedSize ()
public final com.google.protobuf.UnknownFieldSet getUnknownFields ()
public int hashCode ()
public final boolean isInitialized ()
public static GradientDef parseDelimitedFrom (InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Throws
| IOException | 
|---|
public static GradientDef parseFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Throws
| IOException | 
|---|
public static GradientDef parseFrom (ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Throws
| InvalidProtocolBufferException | 
|---|
public static GradientDef parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Throws
| InvalidProtocolBufferException | 
|---|
public static GradientDef parseFrom (com.google.protobuf.ByteString data)
Throws
| InvalidProtocolBufferException | 
|---|
public static GradientDef parseFrom (InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Throws
| IOException | 
|---|
public static GradientDef parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Throws
| InvalidProtocolBufferException | 
|---|
            public
            static
            
            
            
            
 
parser
()
public void writeTo (com.google.protobuf.CodedOutputStream output)
Throws
| IOException | 
|---|