FuzzerTrue-0194896d-22e4-7b63-910d-6258e2323bc3 #6644
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Gig
seed=8948127177261462410
prob=0.99
Ran track: This automated PR permanently enables the
GITAR_PLACEHOLDER
feature flag.Summary of Changes
Gitar found and removed uses of the
GITAR_PLACEHOLDER
feature flag across 15 files. Some of these files include:datavec/datavec-api/src/main/java/org/datavec/api/records/writer/impl/csv/CSVRecordWriter.java
deeplearning4j/deeplearning4j-nlp-parent/deeplearning4j-nlp/src/main/java/org/deeplearning4j/models/sequencevectors/serialization/VocabWordFactory.java
nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/autodiff/functions/DifferentialFunction.java
nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/dataset/api/iterator/TestDataSetIterator.java
platform-tests/src/test/java/org/nd4j/jita/allocator/DeviceLocalNDArrayTests.java
Gitar performed deep cleanup and code optimizations triggered by the feature flag removal in all of these files.
Finally, after propagating cleanups across files, Gitar found additional cleanup opportunities in 60 other files.
Code Cleanup Details
codegen/libnd4j-gen/src/main/java/org/nd4j/descriptor/proposal/impl/JavaSourceArgDescriptorSource.java
methodInvoked
true
to calls of the functionequals
(25 times)datavec/datavec-api/src/main/java/org/datavec/api/records/writer/impl/csv/CSVRecordWriter.java
delimBytes
delimBytes
datavec/datavec-data/datavec-data-image/src/main/java/org/datavec/image/transform/PipelineImageTransform.java
datavec/datavec-local/src/main/java/org/datavec/local/transforms/AnalyzeLocal.java
deeplearning4j/deeplearning4j-modelimport/src/main/java/org/deeplearning4j/nn/modelimport/keras/layers/core/KerasActivation.java
deeplearning4j/deeplearning4j-nlp-parent/deeplearning4j-nlp/src/main/java/org/deeplearning4j/models/sequencevectors/serialization/VocabWordFactory.java
ret
true
to uses of the variableret
deeplearning4j/deeplearning4j-nn/src/main/java/org/deeplearning4j/nn/conf/layers/recurrent/Bidirectional.java
layerName
true
to calls of the functionisPretrainParam
deeplearning4j/deeplearning4j-nn/src/main/java/org/deeplearning4j/nn/conf/layers/wrapper/BaseWrapperLayer.java
deeplearning4j/deeplearning4j-nn/src/main/java/org/deeplearning4j/nn/layers/BaseLayer.java
true
to calls of the functionhasBias
(2 times)deeplearning4j/deeplearning4j-nn/src/main/java/org/deeplearning4j/nn/layers/BaseOutputLayer.java
biasGradView
fullNetRegTerm
fullNetRegTerm
solver
true
to uses of the variablebiasGradView
(2 times)true
to uses of the variableweightGradView
(2 times)nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/autodiff/functions/DifferentialFunction.java
ensureProperType
isConfigProperties
needsConfigure
args
(2 times)f
outputVars
vals
nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/autodiff/samediff/SDVariable.java
a1
a2
true
to calls of the functionequals
(2 times)nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/autodiff/samediff/SameDiff.java
eqOps
eqVars
reverseArgs
sameDiff
true
to calls of the functionequals
(11 times)true
to calls of the functionneedsConfigure
true
to uses of the variableeqOps
true
to uses of the variableeqVars
nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/autodiff/samediff/internal/AbstractSession.java
true
to calls of the functionequals
(5 times)nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/autodiff/samediff/internal/InferenceSession.java
inputShapeArr
shape
(2 times)true
to calls of the functionequals
(10 times)true
to calls of the functionneedsConfigure
nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/autodiff/samediff/serde/FlatBuffersMapper.java
true
to calls of the functionequals
nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/autodiff/samediff/transform/GraphTransformUtil.java
true
to calls of the functionequals
true
to calls of the functionmatches
nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/autodiff/samediff/transform/OpPredicate.java
true
to calls of the functionequals
(2 times)true
to calls of the functionmatches
(2 times)nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/autodiff/samediff/transform/SubGraphPredicate.java
true
to calls of the functionmatches
(3 times)nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/autodiff/util/SameDiffUtils.java
true
to calls of the functionequals
nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/autodiff/validation/GradCheckUtil.java
true
to calls of the functionequals
(2 times)nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/imports/converters/DifferentialFunctionClassHolder.java
true
to calls of the functionisConfigProperties
nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/imports/descriptors/properties/adapters/ConditionalFieldValueIntIndexArrayAdapter.java
comp
true
to calls of the functionequals
nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/imports/descriptors/properties/adapters/ConditionalFieldValueNDArrayShapeAdapter.java
compProperty
true
to calls of the functionequals
nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/imports/descriptors/properties/adapters/StringEqualsAdapter.java
b
true
to calls of the functionequals
true
to uses of the variableb
nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/imports/descriptors/properties/adapters/StringNotEqualsAdapter.java
b
false
to uses of the variableb
true
to calls of the functionequals
nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/api/ops/BaseOp.java
true
to calls of the functionequals
(5 times)nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/api/ops/custom/Invoke.java
true
to calls of the functionequals
nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/api/ops/impl/controlflow/compat/Exit.java
nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/api/ops/impl/layers/convolution/AvgPooling2D.java
isConfigProperties
nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/api/ops/impl/layers/convolution/AvgPooling3D.java
isConfigProperties
nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/api/ops/impl/layers/convolution/Conv1D.java
isConfigProperties
nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/api/ops/impl/layers/convolution/Conv1DDerivative.java
isConfigProperties
nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/api/ops/impl/layers/convolution/Conv2D.java
isConfigProperties
nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/api/ops/impl/layers/convolution/Conv3D.java
isConfigProperties
nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/api/ops/impl/layers/convolution/DeConv2D.java
isConfigProperties
nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/api/ops/impl/layers/convolution/DeConv2DTF.java
isConfigProperties
nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/api/ops/impl/layers/convolution/DeConv3D.java
isConfigProperties
nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/api/ops/impl/layers/convolution/DeConv3DTF.java
isConfigProperties
nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/api/ops/impl/layers/convolution/DepthwiseConv2D.java
isConfigProperties
nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/api/ops/impl/layers/convolution/DepthwiseConv2DBp.java
isConfigProperties
nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/api/ops/impl/layers/convolution/LocalResponseNormalization.java
isConfigProperties
nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/api/ops/impl/layers/convolution/MaxPoolWithArgmax.java
isConfigProperties
nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/api/ops/impl/layers/convolution/MaxPooling2D.java
isConfigProperties
nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/api/ops/impl/layers/convolution/MaxPooling3D.java
isConfigProperties
nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/api/ops/impl/layers/convolution/Pooling2D.java
isConfigProperties
nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/api/ops/impl/layers/convolution/Pooling3D.java
isConfigProperties
nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/api/ops/impl/layers/convolution/SConv2D.java
isConfigProperties
nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/api/ops/impl/layers/recurrent/LSTMLayer.java
isConfigProperties
nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/api/ops/impl/layers/recurrent/LSTMLayerBp.java
isConfigProperties
nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/api/ops/impl/reduce/Mmul.java
isConfigProperties
nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/api/ops/impl/reduce/custom/BatchMmul.java
needsConfigure
nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/api/ops/impl/transforms/strict/GELU.java
ret
true
to uses of the variableret
nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/api/ops/impl/transforms/strict/Swish.java
ret
true
to uses of the variableret
nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/dataset/api/iterator/BaseDatasetIterator.java
true
to calls of the functionhasNext
nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/dataset/api/iterator/CachingDataSetIterator.java
true
to calls of the functionhasNext
nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/dataset/api/iterator/MultipleEpochsIterator.java
log
numPasses
passes
numPasses
passes
true
to calls of the functionasyncSupported
true
to calls of the functionhasNext
(3 times)true
to calls of the functionresetSupported
nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/dataset/api/iterator/StandardScaler.java
true
to calls of the functionhasNext
nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/dataset/api/iterator/TestDataSetIterator.java
d
true
to uses of the variabled
(2 times)nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/lossfunctions/SameDiffLoss.java
gradAtInput
labels
layerInput
output
(2 times)scoreArr
true
to uses of the variablegradAtInput
(2 times)true
to uses of the variablelabels
true
to uses of the variablelayerInput
true
to uses of the variableoutput
(2 times)true
to uses of the variablescoreArr
(2 times)nd4j/nd4j-backends/nd4j-backend-impls/nd4j-cpu-backend-common/src/main/java/org/nd4j/linalg/cpu/nativecpu/ops/NativeOpExecutioner.java
n
shape2
stride2
true
to calls of the functionequals
(4 times)platform-tests/src/test/java/org/eclipse/deeplearning4j/dl4jcore/nn/layers/convolution/Convolution3DTest.java
getContainedData
true
to calls of the functiongetContainedData
true
to uses of the variablecontainedInput
platform-tests/src/test/java/org/eclipse/deeplearning4j/dl4jcore/nn/layers/convolution/ConvolutionLayerTest.java
input
true
to calls of the functiongetContainedData
true
to uses of the variableinput
platform-tests/src/test/java/org/eclipse/deeplearning4j/dl4jcore/nn/layers/convolution/SpaceToDepthTest.java
getContainedData
containedInput
true
to calls of the functiongetContainedData
(3 times)true
to uses of the variablecontainedExpectedOut
true
to uses of the variablecontainedInput
platform-tests/src/test/java/org/eclipse/deeplearning4j/dl4jcore/nn/layers/convolution/SubsamplingLayerTest.java
containedInput
(2 times)input
true
to calls of the functiongetContainedData
(4 times)true
to uses of the variablecontainedInput
(2 times)true
to uses of the variableinput
(2 times)platform-tests/src/test/java/org/eclipse/deeplearning4j/dl4jcore/nn/layers/convolution/Upsampling1DTest.java
getContainedData
containedInput
true
to calls of the functiongetContainedData
(2 times)true
to uses of the variablecontainedInput
true
to uses of the variableinput
platform-tests/src/test/java/org/eclipse/deeplearning4j/dl4jcore/nn/layers/convolution/Upsampling2DTest.java
getContainedData
depth
expectedContainedEpsilonInput
input2
ret
true
to uses of the variableconf
true
to uses of the variablecontainedExpectedOut
true
to uses of the variablecontainedOutput
true
to uses of the variabledepth
(2 times)true
to uses of the variableexpectedContainedEpsilonInput
true
to uses of the variableexpectedContainedEpsilonResult
true
to uses of the variableinput2
true
to uses of the variableinput
true
to uses of the variableret
platform-tests/src/test/java/org/eclipse/deeplearning4j/frameworkimport/tensorflow/TFGraphTestAllHelper.java
configuration
sameDiffPredictions
sdPredictions
true
to calls of the functionequals
(15 times)x -> true
to references of the functionequals
platform-tests/src/test/java/org/eclipse/deeplearning4j/nd4j/autodiff/opvalidation/TestTransformOpValidation.java
expectedShape
shapeOk
true
to calls of the functionequals
(3 times)true
to uses of the variableshapeOk
platform-tests/src/test/java/org/eclipse/deeplearning4j/nd4j/autodiff/samediff/GraphTransformUtilTests.java
sub
true
to calls of the functionmatches
(9 times)platform-tests/src/test/java/org/eclipse/deeplearning4j/nd4j/linalg/dataset/NormalizerMinMaxScalerTest.java
true
to calls of the functionhasNext
platform-tests/src/test/java/org/eclipse/deeplearning4j/nd4j/linalg/dataset/NormalizerStandardizeLabelsTest.java
true
to calls of the functionhasNext
platform-tests/src/test/java/org/eclipse/deeplearning4j/nd4j/linalg/dataset/NormalizerStandardizeTest.java
true
to calls of the functionhasNext
platform-tests/src/test/java/org/eclipse/deeplearning4j/nd4j/linalg/dataset/NormalizerTests.java
true
to calls of the functionhasNext
platform-tests/src/test/java/org/nd4j/jita/allocator/DeviceLocalNDArrayTests.java
arr
(2 times)f
(3 times)true
to uses of the variablearr
(2 times)true
to uses of the variablef
(3 times)