-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Question: update_grid_from_samples
function
#253
Comments
Oh, I just have come to understand the purpose of the code and resolved my own question. Therefore, I am closing this issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
I'm trying to fully understand the update_grid_from_samples function in KANLayer.py, but I'm having trouble with a particular part of the code.
Specifically, I don't understand the purpose of sorting x along the batch axis. Here is the relevant code snippet:
Here, x has a shape of (self.in_dim * self.out_dim, batch).
My concern is that sorting x along the batch axis (dim=1) might result in losing the 'batch' information. I would appreciate any clarification on why sorting along this axis is necessary and how it impacts the functionality of the update_grid_from_samples function.
Thank you for your assistance.
The text was updated successfully, but these errors were encountered: