Shuhul24
Shuhul24
I tried using `langchain.memory.ConversationBufferMemory()` in `RetreivalQAWithSourcesChain` as: ``` qa = RetrievalQAWithSourcesChain(..., memory=ConversationBufferMemory(memory_key="history", input_key="query")) ``` I am able to achieve the output but followed by an error: ``` INFO: 127.0.0.1:63947 -...
Thanks a lot @sarlinpe. I appreciate your efforts, but for now I want to understand how to train this model (SuperGlue) itself to understand the functioning of the model. Can...
Hi. Thanks for the reply! I want to evaluate the gradients with respect to each layer weights (parameters of quantum gates), which is possible if I declare two different PQC...
Thanks for the reply! Is it possible to get the weights of different sections within single PQC, as the weights are `tf.Variable` format and I can't get them just by...
Try this : ``` !pip install tensorflow==2.4.1 !pip install tensorflow-quantum ```
Thanks for the reply! I have a piece of code that I implemented: ```python gen_params = sympy.symbols("a0:13") def encode_circuit_gen(params): qubits = [cirq.GridQubit(1, 0), cirq.GridQubit(1, 1)] circuit = cirq.Circuit() circuit.append(cirq.H(cirq.GridQubit(1, 0)))...
Thanks for the reply! I have updated my above code as follows: ```python class QuantumLayer(tf.keras.layers.Layer): def __init__(self, batch_size) -> None: super().__init__() ops = [cirq.Z(cirq.GridQubit(1, 0)), cirq.Z(cirq.GridQubit(1, 1))] qubits = [cirq.GridQubit(1,...
After doing `quantum()`, I'm getting an error: ```python --------------------------------------------------------------------------- ValueError Traceback (most recent call last) [](https://localhost:8080/#) in 2 Generator(1), 3 ]) ----> 4 generator() 1 frames [/usr/local/lib/python3.8/dist-packages/keras/engine/base_layer.py](https://localhost:8080/#) in _split_out_first_arg(self, args,...
After doing quantum(), I'm getting an error: ```python --------------------------------------------------------------------------- ValueError Traceback (most recent call last) [](https://localhost:8080/#) in 2 Generator(1), 3 ]) ----> 4 generator() 1 frames [/usr/local/lib/python3.8/dist-packages/keras/engine/base_layer.py](https://localhost:8080/#) in _split_out_first_arg(self, args,...
Well, in my case `batch_size` is the input that I am using. Following is the tweaked code: ```python class QuantumLayer(tf.keras.layers.Layer): def __init__(self) -> None: super(QuantumLayer, self).__init__() ops = [cirq.Z(cirq.GridQubit(1, 0)),...