pykan icon indicating copy to clipboard operation
pykan copied to clipboard

Fix device compatibility issue in `KAN.initialize_from_another_model`

Open Jim137 opened this issue 1 year ago • 0 comments

In the KAN.train function, the dataset is sent to the device within the function. However, for KAN.initialize_from_another_model, the dataset needs to be sent before calling the function. This PR allows the dataset to be sent to another_model.device, ensuring compatibility and consistency.

Jim137 avatar May 07 '24 14:05 Jim137