-
Notifications
You must be signed in to change notification settings - Fork 1
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
Slangpy native code v1 #154
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With the caveat that I have no idea what is this trying to do, I just nitpicked couple fringe things that I could imagine would be weird/possibly wrong.
auto& shape = as_vector(); | ||
int total = 1; | ||
std::vector<int> strides(shape.size(), 1); | ||
for (int i = (int)shape.size() - 1; i >= 0; --i) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd use int64_t
here, although 2 billion dimensions are unlikely.
No description provided.