מחלקה סופית סטטית ציבורית 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 מסוג Protobuf.GradientDef שיטות ציבוריות
| GradientDef.Builder | addRepeatedField (שדה com.google.protobuf.Descriptors.FieldDescriptor, ערך אובייקט) |
| GradientDef | לבנות () |
| GradientDef | buildPartial () |
| GradientDef.Builder | ברור () |
| GradientDef.Builder | clearField (שדה com.google.protobuf.Descriptors.FieldDescriptor) |
| GradientDef.Builder | clearFunctionName () The function name. |
| GradientDef.Builder | clearGradientFunc () The gradient function's name. |
| GradientDef.Builder | clearOneof (com.google.protobuf.Descriptors.OneofDescriptor oneof) |
| GradientDef.Builder | שיבוט () |
| GradientDef | |
| final static com.google.protobuf.Descriptors.Descriptor | |
| com.google.protobuf.Descriptors.Descriptor | |
| חוּט | getFunctionName () The function name. |
| com.google.protobuf.ByteString | getFunctionNameBytes () The function name. |
| חוּט | getGradientFunc () The gradient function's name. |
| com.google.protobuf.ByteString | getGradientFuncBytes () The gradient function's name. |
| בוליאנית סופית | |
| GradientDef.Builder | mergeFrom (קלט com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| GradientDef.Builder | mergeFrom (com.google.protobuf.Message אחר) |
| final GradientDef.Builder | mergeUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields) |
| GradientDef.Builder | setField (שדה com.google.protobuf.Descriptors.FieldDescriptor, ערך אובייקט) |
| GradientDef.Builder | setFunctionName (ערך מחרוזת) The function name. |
| GradientDef.Builder | setFunctionNameBytes (ערך com.google.protobuf.ByteString) The function name. |
| GradientDef.Builder | setGradientFunc (ערך מחרוזת) The gradient function's name. |
| GradientDef.Builder | setGradientFuncBytes (ערך com.google.protobuf.ByteString) The gradient function's name. |
| GradientDef.Builder | setRepeatedField (שדה com.google.protobuf.Descriptors.FieldDescriptor, אינדקס אינט, ערך אובייקט) |
| final GradientDef.Builder | setUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields) |
שיטות בירושה
שיטות ציבוריות
Public GradientDef.Builder addRepeatedField (שדה com.google.protobuf.Descriptors.FieldDescriptor, ערך אובייקט)
public GradientDef.Builder clearGradientFunc ()
The gradient function's name.
string gradient_func = 2; public static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()
מחרוזת ציבורית getFunctionName ()
The function name.
string function_name = 1; public com.google.protobuf.ByteString getFunctionNameBytes ()
The function name.
string function_name = 1; מחרוזת ציבורית 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 GradientDef.Builder mergeFrom (קלט com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
זורק
| IOException |
|---|
public final GradientDef.Builder mergeUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)
public GradientDef.Builder setField (שדה com.google.protobuf.Descriptors.FieldDescriptor, ערך אובייקט)
public GradientDef.Builder setFunctionName (ערך מחרוזת)
The function name.
string function_name = 1; public GradientDef.Builder setFunctionNameBytes (ערך com.google.protobuf.ByteString)
The function name.
string function_name = 1; public GradientDef.Builder setGradientFunc (ערך מחרוזת)
The gradient function's name.
string gradient_func = 2; public GradientDef.Builder setGradientFuncBytes (ערך com.google.protobuf.ByteString)
The gradient function's name.
string gradient_func = 2;