InvalidArgumentError: cannot compute Pack as input #1(zero-based) was expected to be a float tensor but is a int32 tensor [Op:Pack] name: x

can anyone help me with this error !!!

Hello sr4! Welcome to the PennyLane forum!

We will be able to help you better if we know more about the context where this error came up. Can you send us a code snippet of the lines that are failing?



Hey @Alvaro_Ballon thanks for the support buddy, i actually resolved the error.

Great @sr4 Let us know if you need more assistance in the future :slight_smile:

1 Like