Skip to content

[Java] Cleaner approach to Enums #995

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

Draft
wants to merge 3 commits into
base: branch-25.08
Choose a base branch
from

Conversation

narangvivek10
Copy link
Contributor

Code changes for #989

Copy link

copy-pr-bot bot commented Jun 9, 2025

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@@ -247,8 +245,7 @@ public static BitSet concatenate(BitSet[] arr, int maxSizeOfEachBitSet) {
* @return DLManagedTensor
*/
public static MemorySegment prepareTensor(Arena arena, MemorySegment data, long[] shape, int code, int bits, int ndim,
int deviceType, int lanes) {

int deviceType, int lanes, MemorySegment strides) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need the strides passed in? All the calls to this seems to be MemorySegment.NULL at the moment.

Also, is this a remnant from some other work? Or is it related to the enums cleanup?

for (boolean use: useNativeMemoryDatasets) {
tmpResultsTopKWithRandomValues(use);
}
for (int i = 0; i < 100; i++) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are a lot of whitespace fixes that are unrelated to this PR. Should we deal with linting, whitespace fixes etc in an entirely separate PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants