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