FuzzerFalse-0194896e-022a-7142-a84f-1f6108fe2437 #6645
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 removes 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/reader/impl/jackson/JacksonLineRecordReader.java
deeplearning4j/deeplearning4j-nlp-parent/deeplearning4j-nlp/src/main/java/org/deeplearning4j/models/word2vec/wordstore/inmemory/InMemoryLookupCache.java
nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/api/ops/impl/transforms/gradient/HardTanhBp.java
nd4j/nd4j-backends/nd4j-backend-impls/nd4j-cpu-backend-common/src/main/java/org/nd4j/linalg/cpu/nativecpu/buffer/BaseCpuDataBuffer.java
platform-tests/src/test/java/org/eclipse/deeplearning4j/dl4jcore/util/MovingWindowMatrixTest.java
Gitar performed deep cleanup and code optimizations triggered by the feature flag removal in 14 of these files.
Finally, after propagating cleanups across files, Gitar found additional cleanup opportunities in 8 other files.
Code Cleanup Details
datavec/datavec-api/src/main/java/org/datavec/api/records/reader/impl/jackson/JacksonLineRecordReader.java
val
false
to uses of the variableval
datavec/datavec-api/src/main/java/org/datavec/api/transform/ops/DispatchWithConditionOp.java
deeplearning4j/deeplearning4j-modelimport/src/main/java/org/deeplearning4j/nn/modelimport/keras/layers/core/KerasReshape.java
listToLongArray
innerConfig
targetShape
deeplearning4j/deeplearning4j-nlp-parent/deeplearning4j-nlp/src/main/java/org/deeplearning4j/models/embeddings/loader/WordVectorSerializer.java
bytes
entry
line
name
vocabCache
word
entry
line
false
to calls of the functionaddToken
(15 times)false
to calls of the functioncontainsWord
false
to calls of the functionelementAtIndex
(10 times)false
to calls of the functionequals
(7 times)false
to calls of the functiontokenFor
(2 times)false
to calls of the functionwordFor
(2 times)false
to uses of the variableelement
false
to uses of the variableword
deeplearning4j/deeplearning4j-nlp-parent/deeplearning4j-nlp/src/main/java/org/deeplearning4j/models/sequencevectors/SequenceVectors.java
false
to calls of the functiontokenFor
(2 times)false
to uses of the variablerealElement
(2 times)deeplearning4j/deeplearning4j-nlp-parent/deeplearning4j-nlp/src/main/java/org/deeplearning4j/models/sequencevectors/serialization/VocabWordFactory.java
ret
false
to uses of the variableret
deeplearning4j/deeplearning4j-nlp-parent/deeplearning4j-nlp/src/main/java/org/deeplearning4j/models/word2vec/wordstore/VocabConstructor.java
false
to calls of the functionhasToken
deeplearning4j/deeplearning4j-nlp-parent/deeplearning4j-nlp/src/main/java/org/deeplearning4j/models/word2vec/wordstore/VocabularyHolder.java
false
to calls of the functioncontainsWord
deeplearning4j/deeplearning4j-nlp-parent/deeplearning4j-nlp/src/main/java/org/deeplearning4j/models/word2vec/wordstore/inmemory/AbstractCache.java
that
false
to calls of the functionaddToken
false
to calls of the functioncontainsWord
(2 times)false
to calls of the functionequals
false
to calls of the functiontokenFor
(3 times)false
to calls of the functionwordFor
false
to uses of the variabletoken
(3 times)deeplearning4j/deeplearning4j-nlp-parent/deeplearning4j-nlp/src/main/java/org/deeplearning4j/models/word2vec/wordstore/inmemory/InMemoryLookupCache.java
ret
false
to calls of the functionwordFor
false
to uses of the variableret
false
to uses of the variablevw
nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/api/ops/CustomOp.java
nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/api/ops/impl/reduce/custom/BatchMmul.java
firstMatrix
firstShape
(3 times)lastMatrix
lastShape
(3 times)nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/api/ops/impl/transforms/gradient/HardTanhBp.java
nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/api/ops/impl/transforms/segment/bp/UnsortedSegmentSqrtNBp.java
nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/api/ops/impl/transforms/strict/ELU.java
nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/learning/NadamUpdater.java
nd4j/nd4j-backends/nd4j-backend-impls/nd4j-cpu-backend-common/src/main/java/org/nd4j/linalg/cpu/nativecpu/buffer/BaseCpuDataBuffer.java
cptr
oldPointer
ptr
allocationMode
(11 times)attached
(4 times)deallocationId
(8 times)elementSize
indexer
(14 times)offset
(6 times)originalOffset
(6 times)parentWorkspace
(4 times)workspaceGenerationId
(5 times)false
to uses of the variableptr
nd4j/nd4j-tvm/src/main/java/org/nd4j/tvm/util/TVMUtils.java
bfloat16Indexer
doubleIndexer
float16Indexer
floatIndexer
int16Indexer
int32Indexer
int64Indexer
int8Indexer
pBfloat16
pDouble
pFloat16
pFloat
pInt16
pInt32
pInt64
pInt8
pUint16
pUint32
pUint64
pUint8
shape
stride
type
uint16Indexer
uint32Indexer
uint64Indexer
uint8Indexer
false
to uses of the variablebfloat16Indexer
false
to uses of the variabledoubleIndexer
false
to uses of the variablefloat16Indexer
false
to uses of the variablefloatIndexer
false
to uses of the variablegetBuffer
false
to uses of the variableint16Indexer
false
to uses of the variableint32Indexer
false
to uses of the variableint64Indexer
false
to uses of the variableint8Indexer
false
to uses of the variablepBfloat16
false
to uses of the variablepDouble
false
to uses of the variablepFloat16
false
to uses of the variablepFloat
false
to uses of the variablepInt16
false
to uses of the variablepInt32
false
to uses of the variablepInt64
false
to uses of the variablepInt8
false
to uses of the variablepUint16
false
to uses of the variablepUint32
false
to uses of the variablepUint64
false
to uses of the variablepUint8
false
to uses of the variabletype
(13 times)false
to uses of the variableuint16Indexer
false
to uses of the variableuint32Indexer
false
to uses of the variableuint64Indexer
false
to uses of the variableuint8Indexer
platform-tests/src/test/java/org/deeplearning4j/models/paragraphvectors/ParagraphVectorsTest.java
false
to calls of the functionaddToken
false
to calls of the functionequals
false
to calls of the functiontokenFor
(2 times)platform-tests/src/test/java/org/deeplearning4j/models/word2vec/wordstore/inmemory/AbstractCacheTest.java
false
to calls of the functionaddToken
(16 times)false
to calls of the functioncontainsWord
false
to calls of the functiontokenFor
platform-tests/src/test/java/org/deeplearning4j/wordstore/InMemoryVocabStoreTests.java
false
to calls of the functioncontainsWord
(2 times)platform-tests/src/test/java/org/eclipse/deeplearning4j/dl4jcore/nn/layers/samediff/SameDiffCustomLayerTests.java
badInput
(2 times)config
(2 times)goodInput
(2 times)false
to uses of the variablebadInput
(4 times)false
to uses of the variableconfig
(2 times)false
to uses of the variablegoodInput
(4 times)platform-tests/src/test/java/org/eclipse/deeplearning4j/dl4jcore/util/MovingWindowMatrixTest.java
ones
false
to uses of the variableones
(2 times)