29 const auto input_index = cur_op->inputs()->operator[](0);
30 const auto output_index = cur_op->outputs()->operator[](0);
32 assert(input_index != -1);
33 assert(output_index != -1);
40 assert(Tensor::num_dims(input) == 4);
48 const auto input_index = cur_op->inputs()->operator[](0);
49 const auto output_index = cur_op->outputs()->operator[](0);
51 assert(input_index != -1);
52 assert(output_index != -1);
60 assert(input_data !=
nullptr);
61 assert(output_data !=
nullptr);
63 switch (Tensor::element_type(input))
66 case DataType::FLOAT32:
68 luci_interpreter_pal::Negate(
75 assert(
false &&
"Unsupported type.");