-
Notifications
You must be signed in to change notification settings - Fork 654
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Way for proper Integer array indexing? #248
Labels
enhancement
New feature or request
Comments
HuaMuLanChina
changed the title
Waty for proper Integer array indexing?
Way for proper Integer array indexing?
Oct 25, 2020
There is a way, try to do following the javadoc: https://javadoc.io/doc/ai.djl/api/latest/ai/djl/ndarray/index/NDIndex.html NDIndex index = new NDIndex().addIndices(0) // pick first dim
.addPickDim(sel);
array.get(index); |
can't pass block runner.
|
zachgk
added
enhancement
New feature or request
and removed
question
Further information is requested
labels
Oct 27, 2020
@HuaMuLanChina Hello, what you can do and it functions for me with the pytorch engine is:
The results are:
The same results for numpy python:
Hope this can help you :D |
'repeat' works . |
Lokiiiiii
pushed a commit
to Lokiiiiii/djl
that referenced
this issue
Oct 10, 2023
This has two changes. First, it adds the serving to the list of modules to publish to maven central. The reason for this is that various types of projects depend on code within serving: plugins, workflow operations, and web clients. I tried to move the requested components to a new module, but found that almost the entirety of the serving module was used in one of those three and would have to be moved. It may be possible to split more out with greater usage of interfaces, but I think it makes more sense to just distribute serving as a whole. The second change made was to create a shared publish.gradle helper similarly to the one in the main DJL repo. As there were 3 (now four) different modules published, I figured it was time for adding the full helper.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Question
In numpy:
what i've tried:
The text was updated successfully, but these errors were encountered: