|
|
@@ -418,14 +418,49 @@ xmodel.Metadata = class {
|
|
|
this._map = new Map();
|
|
|
this._attributeCache = new Map();
|
|
|
const categories = new Map([
|
|
|
+ [ 'avgpool2d', 'Pool' ],
|
|
|
+ [ 'batchnorm', 'Normalization' ],
|
|
|
+ [ 'celu', 'Activation' ],
|
|
|
+ [ 'concat-fix', 'Tensor' ],
|
|
|
+ [ 'concat', 'Tensor' ],
|
|
|
[ 'conv2d-fix', 'Layer' ],
|
|
|
+ [ 'conv2d', 'Layer' ],
|
|
|
[ 'depthwise-conv2d-fix', 'Layer' ],
|
|
|
- [ 'upsample-fix', 'Layer' ],
|
|
|
+ [ 'depthwise-conv2d', 'Layer' ],
|
|
|
+ [ 'elu', 'Activation' ],
|
|
|
+ [ 'fix', 'Quantization' ],
|
|
|
+ [ 'fix2float', 'Quantization' ],
|
|
|
+ [ 'flatten', 'Shape' ],
|
|
|
+ [ 'float2fix', 'Quantization' ],
|
|
|
+ [ 'gelu', 'Activation' ],
|
|
|
+ [ 'hard-sigmoid', 'Activation' ],
|
|
|
+ [ 'hard-swish', 'Activation' ],
|
|
|
+ [ 'hard-tanh', 'Activation' ],
|
|
|
+ [ 'identity', 'Control' ],
|
|
|
+ [ 'inner-product', 'Layer' ],
|
|
|
+ [ 'l2_normalize', 'Normalization' ],
|
|
|
+ [ 'leaky-relu', 'Activation' ],
|
|
|
+ [ 'maxpool2d', 'Pool' ],
|
|
|
[ 'pool-fix', 'Pool' ],
|
|
|
- [ 'batchnorm', 'Normalization' ],
|
|
|
- [ 'concat-fix', 'Tensor' ],
|
|
|
+ [ 'relu', 'Activation' ],
|
|
|
+ [ 'relu6', 'Activation' ],
|
|
|
[ 'reshape-fix', 'Shape' ],
|
|
|
- [ 'softmax', 'Activation' ]
|
|
|
+ [ 'reshape', 'Shape' ],
|
|
|
+ [ 'scale', 'Layer' ],
|
|
|
+ [ 'selu', 'Activation' ],
|
|
|
+ [ 'shape', 'Shape' ],
|
|
|
+ [ 'sigmoid', 'Activation' ],
|
|
|
+ [ 'softmax', 'Activation' ],
|
|
|
+ [ 'squeeze', 'Transform' ],
|
|
|
+ [ 'stack', 'Tensor' ],
|
|
|
+ [ 'strided_slice', 'Tensor' ],
|
|
|
+ [ 'swish', 'Activation' ],
|
|
|
+ [ 'tanh', 'Activation' ],
|
|
|
+ [ 'threshold', 'Quantization' ],
|
|
|
+ [ 'transpose', 'Tensor' ],
|
|
|
+ [ 'transposed-conv2d', 'Layer' ],
|
|
|
+ [ 'transposed-depthwise-conv2d', 'Layer' ],
|
|
|
+ [ 'upsample-fix', 'Data' ],
|
|
|
]);
|
|
|
for (const op_def of op_defs) {
|
|
|
const name = op_def.name;
|