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 type tensorflow.GradientDef Classes aninhadas
| aula | GradientDef.Builder | GradientDef defines the gradient function of a function defined in a function library. | |
Constantes
| int | FUNCTION_NAME_FIELD_NUMBER | |
| int | GRADIENT_FUNC_FIELD_NUMBER |
Métodos Públicos
| boleano | igual a (objeto obj) |
| GradientDef estático | |
| GradientDef | |
| final static com.google.protobuf.Descriptors.Descriptor | |
| Fragmento | getFunctionName () The function name. |
| com.google.protobuf.ByteString | getFunctionNameBytes () The function name. |
| Fragmento | 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 booleano | |
| static GradientDef.Builder | newBuilder (protótipo GradientDef ) |
| static GradientDef.Builder | newBuilder () |
| GradientDef.Builder | |
| GradientDef estático | parseDelimitedFrom (input InputStream) |
| GradientDef estático | parseDelimitedFrom (InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| GradientDef estático | parseFrom (dados ByteBuffer) |
| GradientDef estático | parseFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| GradientDef estático | parseFrom (ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| GradientDef estático | parseFrom (com.google.protobuf.CodedInputStream input) |
| GradientDef estático | parseFrom (byte [] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| GradientDef estático | parseFrom (com.google.protobuf.ByteString data) |
| GradientDef estático | parseFrom (InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| GradientDef estático | parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| estático | analisador () |
| GradientDef.Builder | toBuilder () |
| vazio | writeTo (saída com.google.protobuf.CodedOutputStream) |
Métodos herdados
Constantes
public static final int FUNCTION_NAME_FIELD_NUMBER
Valor Constante: 1
public static final int GRADIENT_FUNC_FIELD_NUMBER
Valor constante: 2
Métodos Públicos
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; público 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)
Lança
| IOException |
|---|
public static GradientDef parseFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Lança
| IOException |
|---|
public static GradientDef parseFrom (ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Lança
| InvalidProtocolBufferException |
|---|
public static GradientDef parseFrom (byte [] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Lança
| InvalidProtocolBufferException |
|---|
public static GradientDef parseFrom (com.google.protobuf.ByteString data)
Lança
| InvalidProtocolBufferException |
|---|
public static GradientDef parseFrom (InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Lança
| IOException |
|---|
public static GradientDef parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Lança
| InvalidProtocolBufferException |
|---|
estática pública analisador ()
public void writeTo (saída com.google.protobuf.CodedOutputStream)
Lança
| IOException |
|---|