public static final class GradientDef.Builder extends com.google.protobuf.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.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
GradientDef |
build() |
GradientDef |
buildPartial() |
GradientDef.Builder |
clear() |
GradientDef.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
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 |
clone() |
GradientDef |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getFunctionName()
The function name.
|
com.google.protobuf.ByteString |
getFunctionNameBytes()
The function name.
|
String |
getGradientFunc()
The gradient function's name.
|
com.google.protobuf.ByteString |
getGradientFuncBytes()
The gradient function's name.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
GradientDef.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
GradientDef.Builder |
mergeFrom(GradientDef other) |
GradientDef.Builder |
mergeFrom(com.google.protobuf.Message other) |
GradientDef.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
GradientDef.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
GradientDef.Builder |
setFunctionName(String value)
The function name.
|
GradientDef.Builder |
setFunctionNameBytes(com.google.protobuf.ByteString value)
The function name.
|
GradientDef.Builder |
setGradientFunc(String value)
The gradient function's name.
|
GradientDef.Builder |
setGradientFuncBytes(com.google.protobuf.ByteString value)
The gradient function's name.
|
GradientDef.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
GradientDef.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, parseUnknownField
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<GradientDef.Builder>
public GradientDef.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<GradientDef.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<GradientDef.Builder>
public GradientDef getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public GradientDef build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public GradientDef buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public GradientDef.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<GradientDef.Builder>
public GradientDef.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<GradientDef.Builder>
public GradientDef.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<GradientDef.Builder>
public GradientDef.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<GradientDef.Builder>
public GradientDef.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<GradientDef.Builder>
public GradientDef.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<GradientDef.Builder>
public GradientDef.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<GradientDef.Builder>
public GradientDef.Builder mergeFrom(GradientDef other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<GradientDef.Builder>
public GradientDef.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<GradientDef.Builder>
IOException
public String getFunctionName()
The function name.
string function_name = 1;
getFunctionName
in interface GradientDefOrBuilder
public com.google.protobuf.ByteString getFunctionNameBytes()
The function name.
string function_name = 1;
getFunctionNameBytes
in interface GradientDefOrBuilder
public 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.google.protobuf.ByteString value)
The function name.
string function_name = 1;
public String getGradientFunc()
The gradient function's name.
string gradient_func = 2;
getGradientFunc
in interface GradientDefOrBuilder
public com.google.protobuf.ByteString getGradientFuncBytes()
The gradient function's name.
string gradient_func = 2;
getGradientFuncBytes
in interface GradientDefOrBuilder
public 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.google.protobuf.ByteString value)
The gradient function's name.
string gradient_func = 2;
public final GradientDef.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<GradientDef.Builder>
public final GradientDef.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<GradientDef.Builder>
Copyright © 2015–2018. All rights reserved.