(X_train,Y_train),(X_test,Y_test)=_data()īinary_index= in t]įolder ="/content/sample_data/local_runtime/" inputs=tf.Tensor(shape=(5, 8), dtype=float64)įor the full code see this !pip install qiskit=0.24.0įrom _provider import FakeQuitoV2įrom _provider import FakeVigoV2. ImportError: Exception encountered when calling layer 'keras_layer_6' (type KerasLayer).Ĭannot import name 'should_record' from '' (/usr/local/lib/python3.10/dist-packages/tensorflow/python/eager/tape.py)Ĭall arguments received by layer 'keras_layer_6' (type KerasLayer): > 458 from import should_record as should_record_backpropĤ60 return should_record_backprop() usr/local/lib/python3.10/dist-packages/pennylane/math/utils.py in requires_grad(tensor, interface)Ĥ56 from import should_record_backpropĤ57 except ImportError: # pragma: no cover ImportError Traceback (most recent call last)Ģ6 pile(optimizer='adam', loss = 'sparse_categorical_crossentropy', metrics =) Shuffle = True,workers=cpu_count(), use_multiprocessing=True) pile(optimizer='adam', loss = 'sparse_categorical_crossentropy', metrics =) Norm=Normalization(mean=0,variance=1,axis=None)(concatenated)ĭense=Dense(2,activation="softmax")(norm) Pool=AveragePooling2D(pool_size=(6,6),strides=(6, 6))(crop)Ĭoncatenated = tf.concat(,axis=1) I am trying to make a nonsequential model with help of pennylane-qiskit and keras but following error shows up from keras.layers import *Ĭrop=Cropping2D(cropping=((2,2),(2,2)))(input)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |