Hattomo/kaikai_AI

"xor" is not working

Closed this issue · 0 comments

step to reproduce

  1. change or to xor
    logic = "or"

Error

label[i] = data[i][0] ^ data[i][1]

Traceback (most recent call last):
  File "dnn/main.py", line 15, in <module>
    (trainData, trainLabel) = lc.dset(logic, epoch)
  File "./dataset/logic_circuit.py", line 66, in dset
    label[i] = data[i][0] ^ data[i][1]
TypeError: ufunc 'bitwise_xor' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''