classe final pública 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 Classes aninhadas
| aula | GradientDef.Builder | GradientDef defines the gradient function of a function defined in a function library. | |
Constantes
| interno | FUNCTION_NAME_FIELD_NUMBER | |
| interno | GRADIENT_FUNC_FIELD_NUMBER |
Métodos Públicos
| booleano | é igual (objeto obj) |
| GradientDef estático | |
| GradienteDef | |
| final estático com.google.protobuf.Descriptors.Descriptor | |
| Corda | getFunctionName () The function name. |
| com.google.protobuf.ByteString | getFunctionNameBytes () The function name. |
| Corda | getGradientFunc () The gradient function's name. |
| com.google.protobuf.ByteString | getGradientFuncBytes () The gradient function's name. |
| interno | |
| final com.google.protobuf.UnknownFieldSet | |
| interno | código hash () |
| booleano final | |
| GradientDef.Builder estático | newBuilder (protótipo GradientDef ) |
| GradientDef.Builder estático | |
| GradientDef.Builder | |
| GradientDef estático | parseDelimitedFrom (entrada InputStream) |
| GradientDef estático | parseDelimitedFrom (entrada InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| GradientDef estático | parseFrom (dados de ByteBuffer) |
| GradientDef estático | parseFrom (entrada com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| GradientDef estático | parseFrom (dados de ByteBuffer, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| GradientDef estático | parseFrom (entrada com.google.protobuf.CodedInputStream) |
| GradientDef estático | parseFrom (byte[] dados, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| GradientDef estático | parseFrom (dados com.google.protobuf.ByteString) |
| GradientDef estático | parseFrom (entrada InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| GradientDef estático | parseFrom (dados com.google.protobuf.ByteString, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| estático | analisador () |
| GradientDef.Builder | |
| vazio | writeTo (saída com.google.protobuf.CodedOutputStream) |
Métodos herdados
Constantes
público estático final int FUNCTION_NAME_FIELD_NUMBER
Valor Constante: 1
público estático final int GRADIENT_FUNC_FIELD_NUMBER
Valor Constante: 2
Métodos Públicos
booleano público é igual (Object obj)
final estático público com.google.protobuf.Descriptors.Descriptor getDescriptor ()
String pública getFunctionName ()
The function name.
string function_name = 1; público com.google.protobuf.ByteString getFunctionNameBytes ()
The function name.
string function_name = 1; String pública getGradientFunc ()
The gradient function's name.
string gradient_func = 2; público com.google.protobuf.ByteString getGradientFuncBytes ()
The gradient function's name.
string gradient_func = 2; público getParserForType ()
público int getSerializedSize ()
final público com.google.protobuf.UnknownFieldSet getUnknownFields ()
hashCode int público ()
público final booleano isInitialized ()
public static GradientDef parseDelimitedFrom (entrada InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Lança
| IOException |
|---|
public static GradientDef parseFrom (entrada com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Lança
| IOException |
|---|
public static GradientDef parseFrom (dados de ByteBuffer, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Lança
| InvalidProtocolBufferException |
|---|
público estático GradientDef parseFrom (entrada com.google.protobuf.CodedInputStream)
Lança
| IOException |
|---|
public static GradientDef parseFrom (byte[] dados, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Lança
| InvalidProtocolBufferException |
|---|
público estático GradientDef parseFrom (dados com.google.protobuf.ByteString)
Lança
| InvalidProtocolBufferException |
|---|
public static GradientDef parseFrom (entrada InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Lança
| IOException |
|---|
public static GradientDef parseFrom (dados com.google.protobuf.ByteString, 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 |
|---|