30 const auto &inputs = args.op.inputs;
31 const auto &outputs = args.op.outputs;
33 if (inputs.size() != 5)
35 if (outputs.size() != 2)
38 const auto tensors = args.reader.tensors();
39 const auto boxes_tensor = tensors.at(inputs[0]);
40 assert(boxes_tensor !=
nullptr);
41 const auto boxes_tensor_shape =
wrap(boxes_tensor->shape());
42 if (boxes_tensor_shape.size() != 2)
44 if (boxes_tensor_shape.at(1) != 4)
46 assert(tensors.at(inputs[1]) !=
nullptr);
47 if (boxes_tensor_shape.at(0) !=
wrap(tensors.at(inputs[1])->shape()).at(0))
50 assert(tensors.at(inputs[2]) !=
nullptr);
51 if (tensors.at(inputs[2])->type() != circle::TensorType_INT32)
53 assert(tensors.at(inputs[3]) !=
nullptr);
54 if (tensors.at(inputs[3])->type() != circle::TensorType_FLOAT32)
56 assert(tensors.at(inputs[4]) !=
nullptr);
57 if (tensors.at(inputs[4])->type() != circle::TensorType_FLOAT32)