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
Labels
type:Bug
Something isn't working
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
please assist , invested quite good amount of time on all possible interest approaches but still not working.
The text was updated successfully, but these errors were encountered: