public static final class GradientDef.Builder extends com.github.os72.protobuf351.GeneratedMessageV3.Builder<GradientDef.Builder> implements GradientDefOrBuilder
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.
Protobuf type tensorflow.GradientDef| Modifier and Type | Method and Description |
|---|---|
GradientDef.Builder |
addRepeatedField(com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
Object value) |
GradientDef |
build() |
GradientDef |
buildPartial() |
GradientDef.Builder |
clear() |
GradientDef.Builder |
clearField(com.github.os72.protobuf351.Descriptors.FieldDescriptor field) |
GradientDef.Builder |
clearFunctionName()
The function name.
|
GradientDef.Builder |
clearGradientFunc()
The gradient function's name.
|
GradientDef.Builder |
clearOneof(com.github.os72.protobuf351.Descriptors.OneofDescriptor oneof) |
GradientDef.Builder |
clone() |
GradientDef |
getDefaultInstanceForType() |
static com.github.os72.protobuf351.Descriptors.Descriptor |
getDescriptor() |
com.github.os72.protobuf351.Descriptors.Descriptor |
getDescriptorForType() |
String |
getFunctionName()
The function name.
|
com.github.os72.protobuf351.ByteString |
getFunctionNameBytes()
The function name.
|
String |
getGradientFunc()
The gradient function's name.
|
com.github.os72.protobuf351.ByteString |
getGradientFuncBytes()
The gradient function's name.
|
protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
GradientDef.Builder |
mergeFrom(com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) |
GradientDef.Builder |
mergeFrom(GradientDef other) |
GradientDef.Builder |
mergeFrom(com.github.os72.protobuf351.Message other) |
GradientDef.Builder |
mergeUnknownFields(com.github.os72.protobuf351.UnknownFieldSet unknownFields) |
GradientDef.Builder |
setField(com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
Object value) |
GradientDef.Builder |
setFunctionName(String value)
The function name.
|
GradientDef.Builder |
setFunctionNameBytes(com.github.os72.protobuf351.ByteString value)
The function name.
|
GradientDef.Builder |
setGradientFunc(String value)
The gradient function's name.
|
GradientDef.Builder |
setGradientFuncBytes(com.github.os72.protobuf351.ByteString value)
The gradient function's name.
|
GradientDef.Builder |
setRepeatedField(com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
int index,
Object value) |
GradientDef.Builder |
setUnknownFields(com.github.os72.protobuf351.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.github.os72.protobuf351.Descriptors.Descriptor getDescriptor()
protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<GradientDef.Builder>public GradientDef.Builder clear()
clear in interface com.github.os72.protobuf351.Message.Builderclear in interface com.github.os72.protobuf351.MessageLite.Builderclear in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<GradientDef.Builder>public com.github.os72.protobuf351.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.github.os72.protobuf351.Message.BuildergetDescriptorForType in interface com.github.os72.protobuf351.MessageOrBuildergetDescriptorForType in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<GradientDef.Builder>public GradientDef getDefaultInstanceForType()
getDefaultInstanceForType in interface com.github.os72.protobuf351.MessageLiteOrBuildergetDefaultInstanceForType in interface com.github.os72.protobuf351.MessageOrBuilderpublic GradientDef build()
build in interface com.github.os72.protobuf351.Message.Builderbuild in interface com.github.os72.protobuf351.MessageLite.Builderpublic GradientDef buildPartial()
buildPartial in interface com.github.os72.protobuf351.Message.BuilderbuildPartial in interface com.github.os72.protobuf351.MessageLite.Builderpublic GradientDef.Builder clone()
clone in interface com.github.os72.protobuf351.Message.Builderclone in interface com.github.os72.protobuf351.MessageLite.Builderclone in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<GradientDef.Builder>public GradientDef.Builder setField(com.github.os72.protobuf351.Descriptors.FieldDescriptor field, Object value)
setField in interface com.github.os72.protobuf351.Message.BuildersetField in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<GradientDef.Builder>public GradientDef.Builder clearField(com.github.os72.protobuf351.Descriptors.FieldDescriptor field)
clearField in interface com.github.os72.protobuf351.Message.BuilderclearField in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<GradientDef.Builder>public GradientDef.Builder clearOneof(com.github.os72.protobuf351.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.github.os72.protobuf351.Message.BuilderclearOneof in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<GradientDef.Builder>public GradientDef.Builder setRepeatedField(com.github.os72.protobuf351.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.github.os72.protobuf351.Message.BuildersetRepeatedField in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<GradientDef.Builder>public GradientDef.Builder addRepeatedField(com.github.os72.protobuf351.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.github.os72.protobuf351.Message.BuilderaddRepeatedField in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<GradientDef.Builder>public GradientDef.Builder mergeFrom(com.github.os72.protobuf351.Message other)
mergeFrom in interface com.github.os72.protobuf351.Message.BuildermergeFrom in class com.github.os72.protobuf351.AbstractMessage.Builder<GradientDef.Builder>public GradientDef.Builder mergeFrom(GradientDef other)
public final boolean isInitialized()
isInitialized in interface com.github.os72.protobuf351.MessageLiteOrBuilderisInitialized in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<GradientDef.Builder>public GradientDef.Builder mergeFrom(com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.github.os72.protobuf351.Message.BuildermergeFrom in interface com.github.os72.protobuf351.MessageLite.BuildermergeFrom in class com.github.os72.protobuf351.AbstractMessage.Builder<GradientDef.Builder>IOExceptionpublic String getFunctionName()
The function name.
string function_name = 1;getFunctionName in interface GradientDefOrBuilderpublic com.github.os72.protobuf351.ByteString getFunctionNameBytes()
The function name.
string function_name = 1;getFunctionNameBytes in interface GradientDefOrBuilderpublic GradientDef.Builder setFunctionName(String value)
The function name.
string function_name = 1;public GradientDef.Builder clearFunctionName()
The function name.
string function_name = 1;public GradientDef.Builder setFunctionNameBytes(com.github.os72.protobuf351.ByteString value)
The function name.
string function_name = 1;public String getGradientFunc()
The gradient function's name.
string gradient_func = 2;getGradientFunc in interface GradientDefOrBuilderpublic com.github.os72.protobuf351.ByteString getGradientFuncBytes()
The gradient function's name.
string gradient_func = 2;getGradientFuncBytes in interface GradientDefOrBuilderpublic GradientDef.Builder setGradientFunc(String value)
The gradient function's name.
string gradient_func = 2;public GradientDef.Builder clearGradientFunc()
The gradient function's name.
string gradient_func = 2;public GradientDef.Builder setGradientFuncBytes(com.github.os72.protobuf351.ByteString value)
The gradient function's name.
string gradient_func = 2;public final GradientDef.Builder setUnknownFields(com.github.os72.protobuf351.UnknownFieldSet unknownFields)
setUnknownFields in interface com.github.os72.protobuf351.Message.BuildersetUnknownFields in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<GradientDef.Builder>public final GradientDef.Builder mergeUnknownFields(com.github.os72.protobuf351.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.github.os72.protobuf351.Message.BuildermergeUnknownFields in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<GradientDef.Builder>Copyright © 2018. All rights reserved.