pykan icon indicating copy to clipboard operation
pykan copied to clipboard

model2.initialize_from_another_model() does not honor device='cuda'

Open mw66 opened this issue 9 months ago • 1 comments

    # model is trained with device='cuda', but when we do:
    model2.initialize_from_another_model(model, dataset['train_input']);

it error out:

RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!

mw66 avatar May 03 '24 04:05 mw66

same issue for me, have to train on cpu, i'd use efficientkan for this. main thing is that the library doesn't have symbolic regression implemented yet.

EladWarshawsky avatar May 12 '24 15:05 EladWarshawsky