Skip to content
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

True Scalar Support #43

Open
jeff-hykin opened this issue Feb 2, 2025 · 0 comments
Open

True Scalar Support #43

jeff-hykin opened this issue Feb 2, 2025 · 0 comments

Comments

@jeff-hykin
Copy link

Love the library! I've been pseudo-polyfilling some of the other pytorch methods, but there was an issue I ran into that I can't find a good workaround for. Because of that I'm not sure if this should be classified as a bug, since its more of a design issue.

In pytorch, doing an operation such as .sum() doesn't produce a vector (shape = [1]), it produces a scalar (shape = []). This solves some edgecases and makes shape validation practical.

Is there any chance js-pytorch will be getting scalar support?

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

No branches or pull requests

1 participant