-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Minor fixes #1154
Minor fixes #1154
Conversation
@@ -82,7 +82,7 @@ static void byteswap_tensor(ggml_tensor * tensor) { | |||
} while (0) | |||
#define BYTESWAP_TENSOR(t) \ | |||
do { \ | |||
byteswap_tensor(tensor); \ | |||
byteswap_tensor(t); \ |
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.
Could you clarify what issues this is causing? And why do we need to switch from tensor
to t
?
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.
-
The current implementation is misleading. The macro accepts an argument, but it is never used.
-
It has not caused errors so far because the place where the macro is used exists a variable with name 'tensor'. Had you changed the variable name, would the code be broken.
No description provided.