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

Return a copy for integer data types with 'trunc' operation. #2499

Open
rdspring1 opened this issue Feb 21, 2023 · 0 comments
Open

Return a copy for integer data types with 'trunc' operation. #2499

rdspring1 opened this issue Feb 21, 2023 · 0 comments
Labels

Comments

@rdspring1
Copy link
Collaborator

🚀 The feature, motivation and pitch

For integer inputs, we should return a copy of the input tensor.

Reference:
https://pytorch.org/docs/stable/generated/torch.trunc.html

Currently, we fail to compile if we pass an integer argument.

CUDA NVRTC compile error: __tmp_kernel3.cu(9229): error: more than one instance of overloaded function "trunc" matches the argument list:
            function "trunc(double)"
__nv_nvrtc_builtin_header.h(167045):
            function "trunc(float)"
__nv_nvrtc_builtin_header.h(168058):
            argument types are: (int)

Alternatives

No response

Additional context

No response

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

No branches or pull requests

1 participant