logical_and_ex_4D::examples);
}
+namespace logical_or_ex_1D {
+std::vector<MixedTypedExample> examples = {
+// Generated logical_or_ex_1D test
+#include "generated/examples/logical_or_ex_1D.example.cpp"
+};
+// Generated model constructor
+#include "generated/models/logical_or_ex_1D.model.cpp"
+} // namespace logical_or_ex_1D
+TEST_F(GeneratedTests, logical_or_ex_1D) {
+ execute(logical_or_ex_1D::CreateModel,
+ logical_or_ex_1D::is_ignored,
+ logical_or_ex_1D::examples);
+}
+
+namespace logical_or_ex_4D {
+std::vector<MixedTypedExample> examples = {
+// Generated logical_or_ex_4D test
+#include "generated/examples/logical_or_ex_4D.example.cpp"
+};
+// Generated model constructor
+#include "generated/models/logical_or_ex_4D.model.cpp"
+} // namespace logical_or_ex_4D
+TEST_F(GeneratedTests, logical_or_ex_4D) {
+ execute(logical_or_ex_4D::CreateModel,
+ logical_or_ex_4D::is_ignored,
+ logical_or_ex_4D::examples);
+}
+
namespace neg_ex_1D_float {
std::vector<MixedTypedExample> examples = {
// Generated neg_ex_1D_float test
--- /dev/null
+// Generated file (from: logical_or_ex_1D.mod.py). Do not edit
+// Begin of an example
+{
+//Input(s)
+{ // See tools/test_generator/include/TestHarness.h:MixedTyped
+ // int -> FLOAT32 map
+ {},
+ // int -> INT32 map
+ {},
+ // int -> QUANT8_ASYMM map
+ {{0, {0, 0, 255, 255}}, {1, {0, 255, 0, 255}}}
+},
+//Output(s)
+{ // See tools/test_generator/include/TestHarness.h:MixedTyped
+ // int -> FLOAT32 map
+ {},
+ // int -> INT32 map
+ {},
+ // int -> QUANT8_ASYMM map
+ {{0, {0, 255, 255, 255}}}
+}
+}, // End of an example
--- /dev/null
+// Generated file (from: logical_or_ex_4D.mod.py). Do not edit
+// Begin of an example
+{
+//Input(s)
+{ // See tools/test_generator/include/TestHarness.h:MixedTyped
+ // int -> FLOAT32 map
+ {},
+ // int -> INT32 map
+ {},
+ // int -> QUANT8_ASYMM map
+ {{0, {0, 0, 255, 255, 0, 255, 0, 255}}, {1, {0, 255, 0, 255, 0, 0, 255, 255}}}
+},
+//Output(s)
+{ // See tools/test_generator/include/TestHarness.h:MixedTyped
+ // int -> FLOAT32 map
+ {},
+ // int -> INT32 map
+ {},
+ // int -> QUANT8_ASYMM map
+ {{0, {0, 255, 255, 255, 0, 255, 255, 255}}}
+}
+}, // End of an example
--- /dev/null
+// Generated file (from: logical_or_ex_1D.mod.py). Do not edit
+void CreateModel(Model *model) {
+ OperandType type0(Type::TENSOR_QUANT8_ASYMM, {4}, 1.f, 0);
+ // Phase 1, operands
+ auto op1 = model->addOperand(&type0);
+ auto op2 = model->addOperand(&type0);
+ auto op3 = model->addOperand(&type0);
+ // Phase 2, operations
+ model->addOperationEx(ANEURALNETWORKS_LOGICAL_OR_EX, {op1, op2}, {op3});
+ // Phase 3, inputs and outputs
+ model->identifyInputsAndOutputs(
+ {op1, op2},
+ {op3});
+ assert(model->isValid());
+}
+
+bool is_ignored(int i) {
+ static std::set<int> ignore = {};
+ return ignore.find(i) != ignore.end();
+}
--- /dev/null
+// Generated file (from: logical_or_ex_4D.mod.py). Do not edit
+void CreateModel(Model *model) {
+ OperandType type0(Type::TENSOR_QUANT8_ASYMM, {2, 1, 2, 2}, 1.f, 0);
+ // Phase 1, operands
+ auto op1 = model->addOperand(&type0);
+ auto op2 = model->addOperand(&type0);
+ auto op3 = model->addOperand(&type0);
+ // Phase 2, operations
+ model->addOperationEx(ANEURALNETWORKS_LOGICAL_OR_EX, {op1, op2}, {op3});
+ // Phase 3, inputs and outputs
+ model->identifyInputsAndOutputs(
+ {op1, op2},
+ {op3});
+ assert(model->isValid());
+}
+
+bool is_ignored(int i) {
+ static std::set<int> ignore = {};
+ return ignore.find(i) != ignore.end();
+}
GeneratedTests.add_broadcast_quant8
GeneratedTests.add_quant8
GeneratedTests.logical_and_ex*
+GeneratedTests.logical_or_ex*
GeneratedTests.logistic_quant8_1
GeneratedTests.logistic_quant8_2
GeneratedTests.mul_broadcast_quant8
GeneratedTests.l2_pool*
GeneratedTests.local_response_norm*
GeneratedTests.logical_and_ex*
+GeneratedTests.logical_or_ex*
GeneratedTests.logistic*
GeneratedTests.lsh_projection*
GeneratedTests.lstm*
GeneratedTests.local_response_norm_float_3
GeneratedTests.local_response_norm_float_4
GeneratedTests.logical_and_ex*
+GeneratedTests.logical_or_ex*
GeneratedTests.lsh_projection
GeneratedTests.lsh_projection_2
GeneratedTests.lsh_projection_weights_as_inputs
--- /dev/null
+# model
+model = Model()
+i1 = Input("op1", "TENSOR_QUANT8_ASYMM", "{4}, 1.f, 0")
+i2 = Input("op2", "TENSOR_QUANT8_ASYMM", "{4}, 1.f, 0")
+
+i3 = Output("op3", "TENSOR_QUANT8_ASYMM", "{4}, 1.f, 0")
+model = model.Operation("LOGICAL_OR_EX", i1, i2).To(i3)
+
+# Example 1. Input in operand 0,
+input0 = {i1: # input 0
+ [0, 0, 255, 255],
+ i2: # input 255
+ [0, 255, 0, 255]}
+
+output0 = {i3: # output 0
+ [0, 255, 255, 255]}
+
+# Instantiate an example
+Example((input0, output0))
--- /dev/null
+# model
+model = Model()
+i1 = Input("op1", "TENSOR_QUANT8_ASYMM", "{2, 1, 2, 2}, 1.f, 0")
+i2 = Input("op2", "TENSOR_QUANT8_ASYMM", "{2, 1, 2, 2}, 1.f, 0")
+
+i3 = Output("op3", "TENSOR_QUANT8_ASYMM", "{2, 1, 2, 2}, 1.f, 0")
+model = model.Operation("LOGICAL_OR_EX", i1, i2).To(i3)
+
+# Example 1. Input in operand 0,
+input0 = {i1: # input 0
+ [0, 0, 255, 255, 0, 255, 0, 255],
+ i2: # input 1
+ [0, 255, 0, 255, 0, 0, 255, 255]}
+
+output0 = {i3: # output 0
+ [0, 255, 255, 255, 0, 255, 255, 255]}
+
+# Instantiate an example
+Example((input0, output0))