31 const auto &inputs = args.op.inputs;
32 const auto &outputs = args.op.outputs;
35 const auto tensors = args.reader.tensors();
36 const auto tensor = tensors.at(inputs.at(0));
37 assert(tensor !=
nullptr);
38 switch (tensor->type())
40 case circle::TensorType_FLOAT16:
41 case circle::TensorType_FLOAT32:
42 case circle::TensorType_FLOAT64:
43 case circle::TensorType_INT32:
44 case circle::TensorType_INT64:
45 case circle::TensorType_COMPLEX64:
49 case circle::TensorType_UINT8:
50 case circle::TensorType_INT16:
57 assert(tensors.at(inputs.at(0)) !=
nullptr && tensors.at(inputs.at(1)) !=
nullptr);
58 if (tensors.at(inputs.at(0))->type() != tensors.at(inputs.at(1))->type())
62 assert(tensors.at(outputs[0]) !=
nullptr);
63 if (tensors.at(inputs.at(0))->type() != tensors.at(outputs[0])->type())