You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cannot import name 'CachedMultiHeadAttention' from partially initialized module 'keras_nlp.src.layers.modeling.cached_multi_head_attention' (most likely due to a circular import) #1427
I am getting below error when i run my python script dealing with importing keras_nlp.
cannot import name 'CachedMultiHeadAttention' from partially initialized module 'keras_nlp.src.layers.modeling.cached_multi_head_attention' (most likely due to a circular import)
Below is the code snippet
import os
os.environ["KERAS_BACKEND"]="torch"
import keras_core as core
import keras_nlp
import keras_core.backend as k
import tensorflow as tf
i am using keras_nlp version 0.7.0 , tensorflow version 2.13.1 , keras core version 0.1.7 and keras version 2.13.1
please assist , invested quite good amount of time on all possible interest approaches but still not working.