Skip to content

ImportError: cannot import name 'layers' from 'tfkan' (unknown location) #7

@MrigankMIDAS

Description

@MrigankMIDAS

The following cell executes successfully:


!git clone https://github.com/ZPZhou-lab/tfkan.git
!cd tfkan && pip install .


However, after that when I run the statements:


from tfkan import layers
from tfkan.layers import DenseKAN, Conv2DKAN


I get the error mesage:
Cell In[8], line 3
2 import tensorflow as tf
----> 3 from tfkan import layers
4 from tfkan.layers import DenseKAN, Conv2DKAN
ImportError: cannot import name 'layers' from 'tfkan' (unknown location).
I am using a Kaggle Notebook at the moment. I have not checked if the issue is particular to the environment or pertains to configuration in general. Please, look into it. Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions