MCPcopy Index your code
hub / github.com/deepjavalibrary/djl / put

Method put

api/src/main/java/ai/djl/ndarray/NDArray.java:730–730  ·  view source on GitHub ↗

Sets the entries of NDArray pointed by index, according to linear indexing, to be the numbers in value. Value has to be of the same shape as index. @param index select the entries of an NDArray @param value numbers to assign to the indexed entries @return the NDArray with update

(NDArray index, NDArray value)

Source from the content-addressed store, hash-verified

728 * @return the NDArray with updated values
729 */
730 NDArray put(NDArray index, NDArray value);
731
732 /**
733 * Writes all values from the tensor value into self at the indices specified in the index

Callers 15

testPutMethod · 0.95
testOutputShapesMethod · 0.65
testOutputShapesMethod · 0.65
testOutputShapesMethod · 0.65
testOutputShapesMethod · 0.65
testOutputShapesMethod · 0.65
toNDArrayMethod · 0.65
createIndexMethod · 0.65
prepareMethod · 0.65
prepareFeaturesMapMethod · 0.65

Implementers 4

NDArrayAdapterapi/src/main/java/ai/djl/ndarray/NDArr
RsNDArrayextensions/tokenizers/src/main/java/ai
TfNDArrayengines/tensorflow/tensorflow-engine/s
PtNDArrayengines/pytorch/pytorch-engine/src/mai

Calls

no outgoing calls

Tested by 15

testPutMethod · 0.76
testOutputShapesMethod · 0.52
testOutputShapesMethod · 0.52
testOutputShapesMethod · 0.52
testOutputShapesMethod · 0.52
testOutputShapesMethod · 0.52
testNewInstanceMethod · 0.52
testNewInstanceMethod · 0.52