From 8a4c858ef660e85c1f4c56c103326e3e9c4b0480 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladimir=20Plazun/AI=20Tools=20Lab=20/SRR/Engineer/?= =?utf8?q?=EC=82=BC=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Tue, 10 Sep 2019 05:10:01 +0300 Subject: [PATCH] [custom op] Add example nnpackage (#7312) Adds example model using FillFrom custom operation Signed-off-by: Vladimir Plazun --- tests/custom_op/nnpkgs/FillFrom/FillFrom.json | 115 ++++++++++++++++++++++ tests/custom_op/nnpkgs/FillFrom/FillFrom.tflite | Bin 0 -> 436 bytes tests/custom_op/nnpkgs/FillFrom/metadata/MANIFEST | 7 ++ 3 files changed, 122 insertions(+) create mode 100644 tests/custom_op/nnpkgs/FillFrom/FillFrom.json create mode 100644 tests/custom_op/nnpkgs/FillFrom/FillFrom.tflite create mode 100644 tests/custom_op/nnpkgs/FillFrom/metadata/MANIFEST diff --git a/tests/custom_op/nnpkgs/FillFrom/FillFrom.json b/tests/custom_op/nnpkgs/FillFrom/FillFrom.json new file mode 100644 index 0000000..5dac87d --- /dev/null +++ b/tests/custom_op/nnpkgs/FillFrom/FillFrom.json @@ -0,0 +1,115 @@ +{ + version: 3, + operator_codes: [ + { + builtin_code: "CUSTOM", + custom_code: "FillFrom", + version: 1 + } + ], + subgraphs: [ + { + tensors: [ + { + shape: [ + 10 + ], + type: "FLOAT32", + buffer: 1, + name: "t_0", + is_variable: false + }, + { + shape: [ + 10 + ], + type: "FLOAT32", + buffer: 2, + name: "t_1", + is_variable: false + }, + { + shape: [ + 10 + ], + type: "FLOAT32", + buffer: 3, + name: "t_2", + is_variable: false + } + ], + inputs: [ + 0 + ], + outputs: [ + 1 + ], + operators: [ + { + opcode_index: 0, + inputs: [ + 0 + ], + outputs: [ + 1 + ], + builtin_options_type: 0, + custom_options: [ + 105, + 100, + 120, + 0, + 118, + 97, + 108, + 0, + 2, + 9, + 6, + 0, + 3, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 3, + 0, + 0, + 0, + 205, + 204, + 140, + 63, + 6, + 14, + 10, + 38, + 1 + ], + custom_options_format: "FLEXBUFFERS" + } + ] + } + ], + description: "nnpackage", + buffers: [ + { + }, + { + }, + { + }, + { + } + ], + metadata_buffer: [ + + ] +} diff --git a/tests/custom_op/nnpkgs/FillFrom/FillFrom.tflite b/tests/custom_op/nnpkgs/FillFrom/FillFrom.tflite new file mode 100644 index 0000000000000000000000000000000000000000..79834dae38d2f478803589a3b0b84c54a529caa5 GIT binary patch literal 436 zcmYk1Jq`g;6on5a44KFjiYXKdM4|9k=%}Vr>X{%S#!p1VA}qop6c(Ul2Nqxf`f<*f z2{-xPySewgbMJEi4BbK7MiB-~Sg=um!xKo66X}vNv4}wwy7viSOzOlSS=QF;tv6YE z^BHrNLLZBcv9~;Gq!{(&Bi%TU{tJEh{kq literal 0 HcmV?d00001 diff --git a/tests/custom_op/nnpkgs/FillFrom/metadata/MANIFEST b/tests/custom_op/nnpkgs/FillFrom/metadata/MANIFEST new file mode 100644 index 0000000..4e97cf1 --- /dev/null +++ b/tests/custom_op/nnpkgs/FillFrom/metadata/MANIFEST @@ -0,0 +1,7 @@ +{ + "major-version" : "1", + "minor-version" : "0", + "patch-version" : "0", + "models" : [ "FillFrom.tflite" ], + "model-types" : [ "tflite" ] +} -- 2.7.4