publiczna statyczna klasa końcowa GradientDef.Builder
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 Metody publiczne
| Kreator GradientDef | addRepeatedField (pole com.google.protobuf.Descriptors.FieldDescriptor, wartość obiektu) |
| GradientDef | zbudować () |
| GradientDef | |
| Kreator GradientDef | jasne () |
| Kreator GradientDef | clearField (pole com.google.protobuf.Descriptors.FieldDescriptor) |
| Kreator GradientDef | wyczyśćNazwęFunkcji () The function name. |
| Kreator GradientDef | clearGradientFunc () The gradient function's name. |
| Kreator GradientDef | clearOneof (com.google.protobuf.Descriptors.OneofDescriptor oneof) |
| Konstruktor GradientDef | klon () |
| GradientDef | |
| końcowy statyczny com.google.protobuf.Descriptors.Descriptor | |
| com.google.protobuf.Descriptors.Descriptor | |
| Smyczkowy | pobierzNazwęFunkcji () The function name. |
| com.google.protobuf.ByteString | getFunctionNameBytes () The function name. |
| Smyczkowy | getGradientFunc () The gradient function's name. |
| com.google.protobuf.ByteString | getGradientFuncBytes () The gradient function's name. |
| końcowa wartość logiczna | |
| Konstruktor GradientDef | mergeFrom (wejście com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry) |
| Konstruktor GradientDef | mergeFrom (com.google.protobuf.Wiadomość inna) |
| końcowy GradientDef.Builder | mergeUnknownFields (com.google.protobuf.UnknownFieldUstaw nieznane pola) |
| Konstruktor GradientDef | setField (pole com.google.protobuf.Descriptors.FieldDescriptor, wartość obiektu) |
| Konstruktor GradientDef | setFunctionName (wartość ciągu) The function name. |
| Konstruktor GradientDef | setFunctionNameBytes (wartość com.google.protobuf.ByteString) The function name. |
| Konstruktor GradientDef | setGradientFunc (wartość ciągu) The gradient function's name. |
| Konstruktor GradientDef | setGradientFuncBytes (wartość com.google.protobuf.ByteString) The gradient function's name. |
| Konstruktor GradientDef | setRepeatedField (pole com.google.protobuf.Descriptors.FieldDescriptor, indeks int, wartość obiektu) |
| końcowy GradientDef.Builder | setUnknownFields (com.google.protobuf.UnknownFieldUstaw nieznane pola) |
Metody dziedziczone
Metody publiczne
public GradientDef.Builder addRepeatedField (pole com.google.protobuf.Descriptors.FieldDescriptor, wartość obiektu)
public GradientDef.Builder clearGradientFunc ()
The gradient function's name.
string gradient_func = 2; public static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
publiczny com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()
public String getFunctionName ()
The function name.
string function_name = 1; public com.google.protobuf.ByteString getFunctionNameBytes ()
The function name.
string function_name = 1; publiczny ciąg 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; publiczna końcowa wartość logiczna isInitialized ()
public GradientDef.Builder mergeFrom (wejście com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)
Rzuca
| Wyjątek IO |
|---|
publiczny końcowy GradientDef.Builder mergeUnknownFields (com.google.protobuf.UnknownFieldSetknownFields)
public GradientDef.Builder setField (pole com.google.protobuf.Descriptors.FieldDescriptor, wartość obiektu)
public GradientDef.Builder setFunctionName (wartość ciągu)
The function name.
string function_name = 1; public GradientDef.Builder setFunctionNameBytes (wartość com.google.protobuf.ByteString)
The function name.
string function_name = 1; public GradientDef.Builder setGradientFunc (wartość ciągu)
The gradient function's name.
string gradient_func = 2; public GradientDef.Builder setGradientFuncBytes (wartość com.google.protobuf.ByteString)
The gradient function's name.
string gradient_func = 2;