found some plists
MODIFY
ane/1_build/coreml_ane.py
ane/1_build/coreml_ane.py
@@ -4,13 +4,17 @@ import coremltools as ct
from coremltools.models.neural_network import datatypes, NeuralNetworkBuilder
input_features = [('image', datatypes.Array(3))]
-output_features = [('probs', datatypes.Array(2))]
+output_features = [('probs', datatypes.Array(3))]
-weights = np.zeros((3, 2)) + 3
-bias = np.ones(2)
+weights = np.zeros((3, 3)) + 3
+bias = np.ones(3)
builder = NeuralNetworkBuilder(input_features, output_features)
-builder.add_inner_product(name='ip_layer', W=weights, b=bias, input_channels=3, output_channels=2, has_bias=True, input_name='image', output_name='probs')
+builder.add_inner_product(name='ip_layer', W=weights, b=None, input_channels=3, output_channels=3, has_bias=False, input_name='image', output_name='med')
+#builder.add_inner_product(name='ip_layer_2', W=weights, b=None, input_channels=3, output_channels=3, has_bias=False, input_name='med', output_name='probs')
+#builder.add_elementwise(name='element', input_names=['med', 'med'], output_name='probs', mode='ADD')
+#builder.add_bias(name='bias', b=bias, input_name='med', output_name='probs', shape_bias=(3,))
+builder.add_activation(name='act_layer', non_linearity='SIGMOID', input_name='med', output_name='probs')
# compile the spec
mlmodel = ct.models.MLModel(builder.spec)

MODIFY
ane/1_build/test.mlmodel
ane/1_build/test.mlmodel
Binary files a/ane/1_build/test.mlmodel and b/ane/1_build/test.mlmodel differ

ADD
ane/2_compile/plists/broadcast.plist
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>Networks</key>
+ <array>
+ <string>net</string>
+ </array>
+ <key>Version</key>
+ <string>1.0.9</string>
+ <key>net</key>
+ <dict>
+ <key>A</key>
+ <dict>
+ <key>BatchSize</key>
+ <integer>7</integer>
+ <key>InputBatchStride</key>
+ <integer>64</integer>
+ <key>InputChannels</key>
+ <integer>1</integer>
+ <key>InputDepth</key>
+ <integer>1</integer>
+ <key>InputDepthStride</key>
+ <integer>448</integer>
+ <key>InputHeight</key>
+ <integer>1</integer>
+ <key>InputInterleave</key>
+ <integer>1</integer>
+ <key>InputPlaneStride</key>
+ <integer>64</integer>
+ <key>InputRowStride</key>
+ <integer>64</integer>
+ <key>InputType</key>
+ <string>Float16</string>
+ <key>InputWidth</key>
+ <integer>1</integer>
+ </dict>
+ <key>A_broadcasted_output</key>
+ <dict>
+ <key>Bottom</key>
+ <string>A</string>
+ <key>Name</key>
+ <string>A_broadcasted_output</string>
+ <key>OutputType</key>
+ <string>Float16</string>
+ <key>Params</key>
+ <dict>
+ <key>BroadcastInfo</key>
+ <array>
+ <dict>
+ <key>Dimension</key>
+ <string>Width</string>
+ <key>Size</key>
+ <integer>2</integer>
+ </dict>
+ </array>
+ </dict>
+ <key>Type</key>
+ <string>Broadcast</string>
+ <key>UnescapedBottom</key>
+ <string>A</string>
+ <key>UnescapedName</key>
+ <string>A_broadcasted_output</string>
+ </dict>
+ <key>B</key>
+ <dict>
+ <key>BatchSize</key>
+ <integer>1</integer>
+ <key>InputChannels</key>
+ <integer>1</integer>
+ <key>InputHeight</key>
+ <integer>1</integer>
+ <key>InputInterleave</key>
+ <integer>1</integer>
+ <key>InputPlaneStride</key>
+ <integer>64</integer>
+ <key>InputRowStride</key>
+ <integer>64</integer>
+ <key>InputType</key>
+ <string>Float16</string>
+ <key>InputWidth</key>
+ <integer>2</integer>
+ </dict>
+ <key>B_broadcasted_output</key>
+ <dict>
+ <key>Bottom</key>
+ <string>B</string>
+ <key>Name</key>
+ <string>B_broadcasted_output</string>
+ <key>OutputType</key>
+ <string>Float16</string>
+ <key>Params</key>
+ <dict>
+ <key>BroadcastInfo</key>
+ <array>
+ <dict>
+ <key>Dimension</key>
+ <string>Depth</string>
+ <key>Size</key>
+ <integer>1</integer>
+ </dict>
+ <dict>
+ <key>Dimension</key>
+ <string>Batch</string>
+ <key>Size</key>
+ <integer>7</integer>
+ </dict>
+ <dict>
+ <key>Dimension</key>
+ <string>Channel</string>
+ <key>Size</key>
+ <integer>1</integer>
+ </dict>
+ <dict>
+ <key>Dimension</key>
+ <string>Height</string>
+ <key>Size</key>
+ <integer>1</integer>
+ </dict>
+ </array>
+ </dict>
+ <key>Type</key>
+ <string>Broadcast</string>
+ <key>UnescapedBottom</key>
+ <string>B</string>
+ <key>UnescapedName</key>
+ <string>B_broadcasted_output</string>
+ </dict>
+ <key>Inputs</key>
+ <array>
+ <string>B</string>
+ <string>A</string>
+ </array>
+ <key>Outputs</key>
+ <array>
+ <string>output@output</string>
+ </array>
+ <key>Units</key>
+ <array>
+ <string>A_broadcasted_output</string>
+ <string>B_broadcasted_output</string>
+ <string>output</string>
+ </array>
+ <key>Weights</key>
+ <array>
+ <string>/private/var/folders/l8/38vj8bm52_gfgsqgdn__sh2w0000gn/T/tmpy5yeqxdi.mlmodelc/model.espresso.weights</string>
+ <string>net.additional.weights</string>
+ </array>
+ <key>output</key>
+ <dict>
+ <key>Bottom</key>
+ <array>
+ <string>A_broadcasted_output</string>
+ <string>B_broadcasted_output</string>
+ </array>
+ <key>Name</key>
+ <string>output</string>
+ <key>OutputType</key>
+ <string>Float16</string>
+ <key>Params</key>
+ <dict>
+ <key>Scale</key>
+ <integer>15360</integer>
+ <key>Type</key>
+ <string>Min</string>
+ </dict>
+ <key>Type</key>
+ <string>ScaledElementWise</string>
+ <key>UnescapedBottom</key>
+ <array>
+ <string>A_broadcasted_output</string>
+ <string>B_broadcasted_output</string>
+ </array>
+ <key>UnescapedName</key>
+ <string>output</string>
+ </dict>
+ <key>output@output</key>
+ <dict>
+ <key>Bottom</key>
+ <string>output</string>
+ <key>OutputBatchStride</key>
+ <integer>64</integer>
+ <key>OutputDepthStride</key>
+ <integer>448</integer>
+ <key>OutputInterleave</key>
+ <integer>1</integer>
+ <key>OutputPlaneStride</key>
+ <integer>64</integer>
+ <key>OutputRowStride</key>
+ <integer>64</integer>
+ <key>OutputType</key>
+ <string>Float16</string>
+ </dict>
+ </dict>
+</dict>
+</plist>

ADD
ane/2_compile/plists/inputview.plist
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>Networks</key>
+ <array>
+ <string>net</string>
+ </array>
+ <key>Version</key>
+ <string>1.0.9</string>
+ <key>net</key>
+ <dict>
+ <key>Inputs</key>
+ <array>
+ <string>data</string>
+ </array>
+ <key>Outputs</key>
+ <array>
+ <string>out_2@output</string>
+ <string>out_1@output</string>
+ <string>out_0@output</string>
+ </array>
+ <key>Units</key>
+ <array>
+ <string>out_0</string>
+ <string>out_1</string>
+ <string>out_2</string>
+ </array>
+ <key>Weights</key>
+ <array>
+ <string>/private/var/folders/l8/38vj8bm52_gfgsqgdn__sh2w0000gn/T/tmp_c4fweo3.mlmodelc/model.espresso.weights</string>
+ <string>net.additional.weights</string>
+ </array>
+ <key>data</key>
+ <dict>
+ <key>BatchSize</key>
+ <integer>1</integer>
+ <key>InputChannels</key>
+ <integer>9</integer>
+ <key>InputHeight</key>
+ <integer>2</integer>
+ <key>InputInterleave</key>
+ <integer>1</integer>
+ <key>InputPlaneStride</key>
+ <integer>128</integer>
+ <key>InputRowStride</key>
+ <integer>64</integer>
+ <key>InputType</key>
+ <string>Float16</string>
+ <key>InputWidth</key>
+ <integer>2</integer>
+ </dict>
+ <key>out_0</key>
+ <dict>
+ <key>Bottom</key>
+ <string>data</string>
+ <key>Name</key>
+ <string>out_0</string>
+ <key>OutputType</key>
+ <string>Float16</string>
+ <key>Params</key>
+ <dict>
+ <key>Dimension</key>
+ <string>Channel</string>
+ <key>Offset</key>
+ <integer>0</integer>
+ <key>Size</key>
+ <integer>3</integer>
+ </dict>
+ <key>Type</key>
+ <string>InputView</string>
+ <key>UnescapedBottom</key>
+ <string>data</string>
+ <key>UnescapedName</key>
+ <string>out_0</string>
+ </dict>
+ <key>out_0@output</key>
+ <dict>
+ <key>Bottom</key>
+ <string>out_0</string>
+ <key>OutputInterleave</key>
+ <integer>1</integer>
+ <key>OutputPlaneStride</key>
+ <integer>128</integer>
+ <key>OutputRowStride</key>
+ <integer>64</integer>
+ <key>OutputType</key>
+ <string>Float16</string>
+ </dict>
+ <key>out_1</key>
+ <dict>
+ <key>Bottom</key>
+ <string>data</string>
+ <key>Name</key>
+ <string>out_1</string>
+ <key>OutputType</key>
+ <string>Float16</string>
+ <key>Params</key>
+ <dict>
+ <key>Dimension</key>
+ <string>Channel</string>
+ <key>Offset</key>
+ <integer>3</integer>
+ <key>Size</key>
+ <integer>3</integer>
+ </dict>
+ <key>Type</key>
+ <string>InputView</string>
+ <key>UnescapedBottom</key>
+ <string>data</string>
+ <key>UnescapedName</key>
+ <string>out_1</string>
+ </dict>
+ <key>out_1@output</key>
+ <dict>
+ <key>Bottom</key>
+ <string>out_1</string>
+ <key>OutputInterleave</key>
+ <integer>1</integer>
+ <key>OutputPlaneStride</key>
+ <integer>128</integer>
+ <key>OutputRowStride</key>
+ <integer>64</integer>
+ <key>OutputType</key>
+ <string>Float16</string>
+ </dict>
+ <key>out_2</key>
+ <dict>
+ <key>Bottom</key>
+ <string>data</string>
+ <key>Name</key>
+ <string>out_2</string>
+ <key>OutputType</key>
+ <string>Float16</string>
+ <key>Params</key>
+ <dict>
+ <key>Dimension</key>
+ <string>Channel</string>
+ <key>Offset</key>
+ <integer>6</integer>
+ <key>Size</key>
+ <integer>3</integer>
+ </dict>
+ <key>Type</key>
+ <string>InputView</string>
+ <key>UnescapedBottom</key>
+ <string>data</string>
+ <key>UnescapedName</key>
+ <string>out_2</string>
+ </dict>
+ <key>out_2@output</key>
+ <dict>
+ <key>Bottom</key>
+ <string>out_2</string>
+ <key>OutputInterleave</key>
+ <integer>1</integer>
+ <key>OutputPlaneStride</key>
+ <integer>128</integer>
+ <key>OutputRowStride</key>
+ <integer>64</integer>
+ <key>OutputType</key>
+ <string>Float16</string>
+ </dict>
+ </dict>
+</dict>
+</plist>

ADD
ane/2_compile/plists/reshape.plist
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>Networks</key>
+ <array>
+ <string>net</string>
+ </array>
+ <key>Version</key>
+ <string>1.0.9</string>
+ <key>net</key>
+ <dict>
+ <key>Inputs</key>
+ <array>
+ <string>data</string>
+ </array>
+ <key>Outputs</key>
+ <array>
+ <string>output@output</string>
+ </array>
+ <key>Units</key>
+ <array>
+ <string>output</string>
+ </array>
+ <key>Weights</key>
+ <array>
+ <string>/private/var/folders/l8/38vj8bm52_gfgsqgdn__sh2w0000gn/T/tmpcwj7kqrw.mlmodelc/model.espresso.weights</string>
+ <string>net.additional.weights</string>
+ </array>
+ <key>data</key>
+ <dict>
+ <key>BatchSize</key>
+ <integer>1</integer>
+ <key>InputChannels</key>
+ <integer>1</integer>
+ <key>InputHeight</key>
+ <integer>2</integer>
+ <key>InputInterleave</key>
+ <integer>1</integer>
+ <key>InputPlaneStride</key>
+ <integer>128</integer>
+ <key>InputRowStride</key>
+ <integer>64</integer>
+ <key>InputType</key>
+ <string>Float16</string>
+ <key>InputWidth</key>
+ <integer>5</integer>
+ </dict>
+ <key>output</key>
+ <dict>
+ <key>Bottom</key>
+ <string>data</string>
+ <key>Name</key>
+ <string>output</string>
+ <key>OutputType</key>
+ <string>Float16</string>
+ <key>Params</key>
+ <dict>
+ <key>ReshapedBatch</key>
+ <integer>1</integer>
+ <key>ReshapedChannel</key>
+ <integer>10</integer>
+ <key>ReshapedDepth</key>
+ <integer>1</integer>
+ <key>ReshapedHeight</key>
+ <integer>1</integer>
+ <key>ReshapedWidth</key>
+ <integer>1</integer>
+ </dict>
+ <key>Type</key>
+ <string>Reshape</string>
+ <key>UnescapedBottom</key>
+ <string>data</string>
+ <key>UnescapedName</key>
+ <string>output</string>
+ </dict>
+ <key>output@output</key>
+ <dict>
+ <key>Bottom</key>
+ <string>output</string>
+ <key>OutputInterleave</key>
+ <integer>1</integer>
+ <key>OutputPlaneStride</key>
+ <integer>64</integer>
+ <key>OutputRowStride</key>
+ <integer>64</integer>
+ <key>OutputType</key>
+ <string>Float16</string>
+ </dict>
+ </dict>
+</dict>
+</plist>

ADD
ane/2_compile/plists/scaled.plist
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>Networks</key>
+ <array>
+ <string>net</string>
+ </array>
+ <key>Version</key>
+ <string>1.0.9</string>
+ <key>net</key>
+ <dict>
+ <key>A</key>
+ <dict>
+ <key>BatchSize</key>
+ <integer>1</integer>
+ <key>InputChannels</key>
+ <integer>1</integer>
+ <key>InputHeight</key>
+ <integer>5</integer>
+ <key>InputInterleave</key>
+ <integer>1</integer>
+ <key>InputPlaneStride</key>
+ <integer>320</integer>
+ <key>InputRowStride</key>
+ <integer>64</integer>
+ <key>InputType</key>
+ <string>Float16</string>
+ <key>InputWidth</key>
+ <integer>7</integer>
+ </dict>
+ <key>B</key>
+ <dict>
+ <key>BatchSize</key>
+ <integer>1</integer>
+ <key>InputChannels</key>
+ <integer>1</integer>
+ <key>InputHeight</key>
+ <integer>1</integer>
+ <key>InputInterleave</key>
+ <integer>1</integer>
+ <key>InputPlaneStride</key>
+ <integer>64</integer>
+ <key>InputRowStride</key>
+ <integer>64</integer>
+ <key>InputType</key>
+ <string>Float16</string>
+ <key>InputWidth</key>
+ <integer>7</integer>
+ </dict>
+ <key>B_broadcasted_output</key>
+ <dict>
+ <key>Bottom</key>
+ <string>B</string>
+ <key>Name</key>
+ <string>B_broadcasted_output</string>
+ <key>OutputType</key>
+ <string>Float16</string>
+ <key>Params</key>
+ <dict>
+ <key>BroadcastInfo</key>
+ <array>
+ <dict>
+ <key>Dimension</key>
+ <string>Height</string>
+ <key>Size</key>
+ <integer>5</integer>
+ </dict>
+ </array>
+ </dict>
+ <key>Type</key>
+ <string>Broadcast</string>
+ <key>UnescapedBottom</key>
+ <string>B</string>
+ <key>UnescapedName</key>
+ <string>B_broadcasted_output</string>
+ </dict>
+ <key>Inputs</key>
+ <array>
+ <string>B</string>
+ <string>A</string>
+ </array>
+ <key>Outputs</key>
+ <array>
+ <string>output@output</string>
+ </array>
+ <key>Units</key>
+ <array>
+ <string>B_broadcasted_output</string>
+ <string>output</string>
+ </array>
+ <key>Weights</key>
+ <array>
+ <string>/private/var/folders/l8/38vj8bm52_gfgsqgdn__sh2w0000gn/T/tmp40ksdbf5.mlmodelc/model.espresso.weights</string>
+ <string>net.additional.weights</string>
+ </array>
+ <key>output</key>
+ <dict>
+ <key>Bottom</key>
+ <array>
+ <string>A</string>
+ <string>B_broadcasted_output</string>
+ </array>
+ <key>Name</key>
+ <string>output</string>
+ <key>OutputType</key>
+ <string>Float16</string>
+ <key>Params</key>
+ <dict>
+ <key>Scale</key>
+ <integer>15360</integer>
+ <key>Type</key>
+ <string>Min</string>
+ </dict>
+ <key>Type</key>
+ <string>ScaledElementWise</string>
+ <key>UnescapedBottom</key>
+ <array>
+ <string>A</string>
+ <string>B_broadcasted_output</string>
+ </array>
+ <key>UnescapedName</key>
+ <string>output</string>
+ </dict>
+ <key>output@output</key>
+ <dict>
+ <key>Bottom</key>
+ <string>output</string>
+ <key>OutputInterleave</key>
+ <integer>1</integer>
+ <key>OutputPlaneStride</key>
+ <integer>320</integer>
+ <key>OutputRowStride</key>
+ <integer>64</integer>
+ <key>OutputType</key>
+ <string>Float16</string>
+ </dict>
+ </dict>
+</dict>
+</plist>

MODIFY
ane/README
ane/README
@@ -62,6 +62,8 @@ kZinTensorFormatInvalid
== min.plist ==
+Types: GOC, Conv, Broadcast, ScaledElementWise
+
< conv op @ 0x140 >
u32 0x140 = (OutputType * 0x10) | InputType
u32 0x144 = InputChannels

found some plists