mobilenet-webnn / model.webnn
tarekziade's picture
tarekziade HF Staff
fixed format
8e532d7 unverified
Raw
History Blame
20.1 kB
webnn_graph "mobilenetv2" v1 {
inputs {
input: f32[1, 3, 224, 224];
}
consts {
operand_1: f32[32, 3, 3, 3] @weights("operand_1");
operand_102: f32[384, 64, 1, 1] @weights("operand_102");
operand_103: f32[1, 384, 1, 1] @weights("operand_103");
operand_107: f32[384, 1, 3, 3] @weights("operand_107");
operand_108: f32[1, 384, 1, 1] @weights("operand_108");
operand_11: f32[16, 32, 1, 1] @weights("operand_11");
operand_112: f32[64, 384, 1, 1] @weights("operand_112");
operand_113: f32[1, 64, 1, 1] @weights("operand_113");
operand_117: f32[384, 64, 1, 1] @weights("operand_117");
operand_118: f32[1, 384, 1, 1] @weights("operand_118");
operand_12: f32[1, 16, 1, 1] @weights("operand_12");
operand_122: f32[384, 1, 3, 3] @weights("operand_122");
operand_123: f32[1, 384, 1, 1] @weights("operand_123");
operand_127: f32[64, 384, 1, 1] @weights("operand_127");
operand_128: f32[1, 64, 1, 1] @weights("operand_128");
operand_132: f32[384, 64, 1, 1] @weights("operand_132");
operand_133: f32[1, 384, 1, 1] @weights("operand_133");
operand_137: f32[384, 1, 3, 3] @weights("operand_137");
operand_138: f32[1, 384, 1, 1] @weights("operand_138");
operand_142: f32[64, 384, 1, 1] @weights("operand_142");
operand_143: f32[1, 64, 1, 1] @weights("operand_143");
operand_147: f32[384, 64, 1, 1] @weights("operand_147");
operand_148: f32[1, 384, 1, 1] @weights("operand_148");
operand_15: f32[96, 16, 1, 1] @weights("operand_15");
operand_152: f32[384, 1, 3, 3] @weights("operand_152");
operand_153: f32[1, 384, 1, 1] @weights("operand_153");
operand_157: f32[96, 384, 1, 1] @weights("operand_157");
operand_158: f32[1, 96, 1, 1] @weights("operand_158");
operand_16: f32[1, 96, 1, 1] @weights("operand_16");
operand_161: f32[576, 96, 1, 1] @weights("operand_161");
operand_162: f32[1, 576, 1, 1] @weights("operand_162");
operand_166: f32[576, 1, 3, 3] @weights("operand_166");
operand_167: f32[1, 576, 1, 1] @weights("operand_167");
operand_171: f32[96, 576, 1, 1] @weights("operand_171");
operand_172: f32[1, 96, 1, 1] @weights("operand_172");
operand_176: f32[576, 96, 1, 1] @weights("operand_176");
operand_177: f32[1, 576, 1, 1] @weights("operand_177");
operand_181: f32[576, 1, 3, 3] @weights("operand_181");
operand_182: f32[1, 576, 1, 1] @weights("operand_182");
operand_186: f32[96, 576, 1, 1] @weights("operand_186");
operand_187: f32[1, 96, 1, 1] @weights("operand_187");
operand_191: f32[576, 96, 1, 1] @weights("operand_191");
operand_192: f32[1, 576, 1, 1] @weights("operand_192");
operand_196: f32[576, 1, 3, 3] @weights("operand_196");
operand_197: f32[1, 576, 1, 1] @weights("operand_197");
operand_2: f32[1, 32, 1, 1] @weights("operand_2");
operand_20: f32[96, 1, 3, 3] @weights("operand_20");
operand_201: f32[160, 576, 1, 1] @weights("operand_201");
operand_202: f32[1, 160, 1, 1] @weights("operand_202");
operand_205: f32[960, 160, 1, 1] @weights("operand_205");
operand_206: f32[1, 960, 1, 1] @weights("operand_206");
operand_21: f32[1, 96, 1, 1] @weights("operand_21");
operand_210: f32[960, 1, 3, 3] @weights("operand_210");
operand_211: f32[1, 960, 1, 1] @weights("operand_211");
operand_215: f32[160, 960, 1, 1] @weights("operand_215");
operand_216: f32[1, 160, 1, 1] @weights("operand_216");
operand_220: f32[960, 160, 1, 1] @weights("operand_220");
operand_221: f32[1, 960, 1, 1] @weights("operand_221");
operand_225: f32[960, 1, 3, 3] @weights("operand_225");
operand_226: f32[1, 960, 1, 1] @weights("operand_226");
operand_230: f32[160, 960, 1, 1] @weights("operand_230");
operand_231: f32[1, 160, 1, 1] @weights("operand_231");
operand_235: f32[960, 160, 1, 1] @weights("operand_235");
operand_236: f32[1, 960, 1, 1] @weights("operand_236");
operand_240: f32[960, 1, 3, 3] @weights("operand_240");
operand_241: f32[1, 960, 1, 1] @weights("operand_241");
operand_245: f32[320, 960, 1, 1] @weights("operand_245");
operand_246: f32[1, 320, 1, 1] @weights("operand_246");
operand_249: f32[1280, 320, 1, 1] @weights("operand_249");
operand_25: f32[24, 96, 1, 1] @weights("operand_25");
operand_250: f32[1, 1280, 1, 1] @weights("operand_250");
operand_256: f32[1000, 1280] @weights("operand_256");
operand_257: f32[1, 1000] @weights("operand_257");
operand_26: f32[1, 24, 1, 1] @weights("operand_26");
operand_29: f32[144, 24, 1, 1] @weights("operand_29");
operand_30: f32[1, 144, 1, 1] @weights("operand_30");
operand_34: f32[144, 1, 3, 3] @weights("operand_34");
operand_35: f32[1, 144, 1, 1] @weights("operand_35");
operand_39: f32[24, 144, 1, 1] @weights("operand_39");
operand_40: f32[1, 24, 1, 1] @weights("operand_40");
operand_44: f32[144, 24, 1, 1] @weights("operand_44");
operand_45: f32[1, 144, 1, 1] @weights("operand_45");
operand_49: f32[144, 1, 3, 3] @weights("operand_49");
operand_50: f32[1, 144, 1, 1] @weights("operand_50");
operand_54: f32[32, 144, 1, 1] @weights("operand_54");
operand_55: f32[1, 32, 1, 1] @weights("operand_55");
operand_58: f32[192, 32, 1, 1] @weights("operand_58");
operand_59: f32[1, 192, 1, 1] @weights("operand_59");
operand_6: f32[32, 1, 3, 3] @weights("operand_6");
operand_63: f32[192, 1, 3, 3] @weights("operand_63");
operand_64: f32[1, 192, 1, 1] @weights("operand_64");
operand_68: f32[32, 192, 1, 1] @weights("operand_68");
operand_69: f32[1, 32, 1, 1] @weights("operand_69");
operand_7: f32[1, 32, 1, 1] @weights("operand_7");
operand_73: f32[192, 32, 1, 1] @weights("operand_73");
operand_74: f32[1, 192, 1, 1] @weights("operand_74");
operand_78: f32[192, 1, 3, 3] @weights("operand_78");
operand_79: f32[1, 192, 1, 1] @weights("operand_79");
operand_83: f32[32, 192, 1, 1] @weights("operand_83");
operand_84: f32[1, 32, 1, 1] @weights("operand_84");
operand_88: f32[192, 32, 1, 1] @weights("operand_88");
operand_89: f32[1, 192, 1, 1] @weights("operand_89");
operand_93: f32[192, 1, 3, 3] @weights("operand_93");
operand_94: f32[1, 192, 1, 1] @weights("operand_94");
operand_98: f32[64, 192, 1, 1] @weights("operand_98");
operand_99: f32[1, 64, 1, 1] @weights("operand_99");
}
nodes {
operand_3 = conv2d(input, operand_1, dilations=[1, 1], filterLayout="oihw", groups=1, inputLayout="nchw", pads=[1, 1, 1, 1], strides=[2, 2]);
operand_4 = add(operand_3, operand_2);
operand_5 = clamp(operand_4, max_value=6.0, min_value=0.0);
operand_8 = conv2d(operand_5, operand_6, dilations=[1, 1], filterLayout="oihw", groups=32, inputLayout="nchw", pads=[1, 1, 1, 1], strides=[1, 1]);
operand_9 = add(operand_8, operand_7);
operand_10 = clamp(operand_9, max_value=6.0, min_value=0.0);
operand_13 = conv2d(operand_10, operand_11, dilations=[1, 1], filterLayout="oihw", groups=1, inputLayout="nchw", pads=[0, 0, 0, 0], strides=[1, 1]);
operand_14 = add(operand_13, operand_12);
operand_17 = conv2d(operand_14, operand_15, dilations=[1, 1], filterLayout="oihw", groups=1, inputLayout="nchw", pads=[0, 0, 0, 0], strides=[1, 1]);
operand_18 = add(operand_17, operand_16);
operand_19 = clamp(operand_18, max_value=6.0, min_value=0.0);
operand_22 = conv2d(operand_19, operand_20, dilations=[1, 1], filterLayout="oihw", groups=96, inputLayout="nchw", pads=[1, 1, 1, 1], strides=[2, 2]);
operand_23 = add(operand_22, operand_21);
operand_24 = clamp(operand_23, max_value=6.0, min_value=0.0);
operand_27 = conv2d(operand_24, operand_25, dilations=[1, 1], filterLayout="oihw", groups=1, inputLayout="nchw", pads=[0, 0, 0, 0], strides=[1, 1]);
operand_28 = add(operand_27, operand_26);
operand_31 = conv2d(operand_28, operand_29, dilations=[1, 1], filterLayout="oihw", groups=1, inputLayout="nchw", pads=[0, 0, 0, 0], strides=[1, 1]);
operand_32 = add(operand_31, operand_30);
operand_33 = clamp(operand_32, max_value=6.0, min_value=0.0);
operand_36 = conv2d(operand_33, operand_34, dilations=[1, 1], filterLayout="oihw", groups=144, inputLayout="nchw", pads=[1, 1, 1, 1], strides=[1, 1]);
operand_37 = add(operand_36, operand_35);
operand_38 = clamp(operand_37, max_value=6.0, min_value=0.0);
operand_41 = conv2d(operand_38, operand_39, dilations=[1, 1], filterLayout="oihw", groups=1, inputLayout="nchw", pads=[0, 0, 0, 0], strides=[1, 1]);
operand_42 = add(operand_41, operand_40);
operand_43 = add(operand_42, operand_28);
operand_46 = conv2d(operand_43, operand_44, dilations=[1, 1], filterLayout="oihw", groups=1, inputLayout="nchw", pads=[0, 0, 0, 0], strides=[1, 1]);
operand_47 = add(operand_46, operand_45);
operand_48 = clamp(operand_47, max_value=6.0, min_value=0.0);
operand_51 = conv2d(operand_48, operand_49, dilations=[1, 1], filterLayout="oihw", groups=144, inputLayout="nchw", pads=[1, 1, 1, 1], strides=[2, 2]);
operand_52 = add(operand_51, operand_50);
operand_53 = clamp(operand_52, max_value=6.0, min_value=0.0);
operand_56 = conv2d(operand_53, operand_54, dilations=[1, 1], filterLayout="oihw", groups=1, inputLayout="nchw", pads=[0, 0, 0, 0], strides=[1, 1]);
operand_57 = add(operand_56, operand_55);
operand_60 = conv2d(operand_57, operand_58, dilations=[1, 1], filterLayout="oihw", groups=1, inputLayout="nchw", pads=[0, 0, 0, 0], strides=[1, 1]);
operand_61 = add(operand_60, operand_59);
operand_62 = clamp(operand_61, max_value=6.0, min_value=0.0);
operand_65 = conv2d(operand_62, operand_63, dilations=[1, 1], filterLayout="oihw", groups=192, inputLayout="nchw", pads=[1, 1, 1, 1], strides=[1, 1]);
operand_66 = add(operand_65, operand_64);
operand_67 = clamp(operand_66, max_value=6.0, min_value=0.0);
operand_70 = conv2d(operand_67, operand_68, dilations=[1, 1], filterLayout="oihw", groups=1, inputLayout="nchw", pads=[0, 0, 0, 0], strides=[1, 1]);
operand_71 = add(operand_70, operand_69);
operand_72 = add(operand_71, operand_57);
operand_75 = conv2d(operand_72, operand_73, dilations=[1, 1], filterLayout="oihw", groups=1, inputLayout="nchw", pads=[0, 0, 0, 0], strides=[1, 1]);
operand_76 = add(operand_75, operand_74);
operand_77 = clamp(operand_76, max_value=6.0, min_value=0.0);
operand_80 = conv2d(operand_77, operand_78, dilations=[1, 1], filterLayout="oihw", groups=192, inputLayout="nchw", pads=[1, 1, 1, 1], strides=[1, 1]);
operand_81 = add(operand_80, operand_79);
operand_82 = clamp(operand_81, max_value=6.0, min_value=0.0);
operand_85 = conv2d(operand_82, operand_83, dilations=[1, 1], filterLayout="oihw", groups=1, inputLayout="nchw", pads=[0, 0, 0, 0], strides=[1, 1]);
operand_86 = add(operand_85, operand_84);
operand_87 = add(operand_86, operand_72);
operand_90 = conv2d(operand_87, operand_88, dilations=[1, 1], filterLayout="oihw", groups=1, inputLayout="nchw", pads=[0, 0, 0, 0], strides=[1, 1]);
operand_91 = add(operand_90, operand_89);
operand_92 = clamp(operand_91, max_value=6.0, min_value=0.0);
operand_95 = conv2d(operand_92, operand_93, dilations=[1, 1], filterLayout="oihw", groups=192, inputLayout="nchw", pads=[1, 1, 1, 1], strides=[2, 2]);
operand_96 = add(operand_95, operand_94);
operand_97 = clamp(operand_96, max_value=6.0, min_value=0.0);
operand_100 = conv2d(operand_97, operand_98, dilations=[1, 1], filterLayout="oihw", groups=1, inputLayout="nchw", pads=[0, 0, 0, 0], strides=[1, 1]);
operand_101 = add(operand_100, operand_99);
operand_104 = conv2d(operand_101, operand_102, dilations=[1, 1], filterLayout="oihw", groups=1, inputLayout="nchw", pads=[0, 0, 0, 0], strides=[1, 1]);
operand_105 = add(operand_104, operand_103);
operand_106 = clamp(operand_105, max_value=6.0, min_value=0.0);
operand_109 = conv2d(operand_106, operand_107, dilations=[1, 1], filterLayout="oihw", groups=384, inputLayout="nchw", pads=[1, 1, 1, 1], strides=[1, 1]);
operand_110 = add(operand_109, operand_108);
operand_111 = clamp(operand_110, max_value=6.0, min_value=0.0);
operand_114 = conv2d(operand_111, operand_112, dilations=[1, 1], filterLayout="oihw", groups=1, inputLayout="nchw", pads=[0, 0, 0, 0], strides=[1, 1]);
operand_115 = add(operand_114, operand_113);
operand_116 = add(operand_115, operand_101);
operand_119 = conv2d(operand_116, operand_117, dilations=[1, 1], filterLayout="oihw", groups=1, inputLayout="nchw", pads=[0, 0, 0, 0], strides=[1, 1]);
operand_120 = add(operand_119, operand_118);
operand_121 = clamp(operand_120, max_value=6.0, min_value=0.0);
operand_124 = conv2d(operand_121, operand_122, dilations=[1, 1], filterLayout="oihw", groups=384, inputLayout="nchw", pads=[1, 1, 1, 1], strides=[1, 1]);
operand_125 = add(operand_124, operand_123);
operand_126 = clamp(operand_125, max_value=6.0, min_value=0.0);
operand_129 = conv2d(operand_126, operand_127, dilations=[1, 1], filterLayout="oihw", groups=1, inputLayout="nchw", pads=[0, 0, 0, 0], strides=[1, 1]);
operand_130 = add(operand_129, operand_128);
operand_131 = add(operand_130, operand_116);
operand_134 = conv2d(operand_131, operand_132, dilations=[1, 1], filterLayout="oihw", groups=1, inputLayout="nchw", pads=[0, 0, 0, 0], strides=[1, 1]);
operand_135 = add(operand_134, operand_133);
operand_136 = clamp(operand_135, max_value=6.0, min_value=0.0);
operand_139 = conv2d(operand_136, operand_137, dilations=[1, 1], filterLayout="oihw", groups=384, inputLayout="nchw", pads=[1, 1, 1, 1], strides=[1, 1]);
operand_140 = add(operand_139, operand_138);
operand_141 = clamp(operand_140, max_value=6.0, min_value=0.0);
operand_144 = conv2d(operand_141, operand_142, dilations=[1, 1], filterLayout="oihw", groups=1, inputLayout="nchw", pads=[0, 0, 0, 0], strides=[1, 1]);
operand_145 = add(operand_144, operand_143);
operand_146 = add(operand_145, operand_131);
operand_149 = conv2d(operand_146, operand_147, dilations=[1, 1], filterLayout="oihw", groups=1, inputLayout="nchw", pads=[0, 0, 0, 0], strides=[1, 1]);
operand_150 = add(operand_149, operand_148);
operand_151 = clamp(operand_150, max_value=6.0, min_value=0.0);
operand_154 = conv2d(operand_151, operand_152, dilations=[1, 1], filterLayout="oihw", groups=384, inputLayout="nchw", pads=[1, 1, 1, 1], strides=[1, 1]);
operand_155 = add(operand_154, operand_153);
operand_156 = clamp(operand_155, max_value=6.0, min_value=0.0);
operand_159 = conv2d(operand_156, operand_157, dilations=[1, 1], filterLayout="oihw", groups=1, inputLayout="nchw", pads=[0, 0, 0, 0], strides=[1, 1]);
operand_160 = add(operand_159, operand_158);
operand_163 = conv2d(operand_160, operand_161, dilations=[1, 1], filterLayout="oihw", groups=1, inputLayout="nchw", pads=[0, 0, 0, 0], strides=[1, 1]);
operand_164 = add(operand_163, operand_162);
operand_165 = clamp(operand_164, max_value=6.0, min_value=0.0);
operand_168 = conv2d(operand_165, operand_166, dilations=[1, 1], filterLayout="oihw", groups=576, inputLayout="nchw", pads=[1, 1, 1, 1], strides=[1, 1]);
operand_169 = add(operand_168, operand_167);
operand_170 = clamp(operand_169, max_value=6.0, min_value=0.0);
operand_173 = conv2d(operand_170, operand_171, dilations=[1, 1], filterLayout="oihw", groups=1, inputLayout="nchw", pads=[0, 0, 0, 0], strides=[1, 1]);
operand_174 = add(operand_173, operand_172);
operand_175 = add(operand_174, operand_160);
operand_178 = conv2d(operand_175, operand_176, dilations=[1, 1], filterLayout="oihw", groups=1, inputLayout="nchw", pads=[0, 0, 0, 0], strides=[1, 1]);
operand_179 = add(operand_178, operand_177);
operand_180 = clamp(operand_179, max_value=6.0, min_value=0.0);
operand_183 = conv2d(operand_180, operand_181, dilations=[1, 1], filterLayout="oihw", groups=576, inputLayout="nchw", pads=[1, 1, 1, 1], strides=[1, 1]);
operand_184 = add(operand_183, operand_182);
operand_185 = clamp(operand_184, max_value=6.0, min_value=0.0);
operand_188 = conv2d(operand_185, operand_186, dilations=[1, 1], filterLayout="oihw", groups=1, inputLayout="nchw", pads=[0, 0, 0, 0], strides=[1, 1]);
operand_189 = add(operand_188, operand_187);
operand_190 = add(operand_189, operand_175);
operand_193 = conv2d(operand_190, operand_191, dilations=[1, 1], filterLayout="oihw", groups=1, inputLayout="nchw", pads=[0, 0, 0, 0], strides=[1, 1]);
operand_194 = add(operand_193, operand_192);
operand_195 = clamp(operand_194, max_value=6.0, min_value=0.0);
operand_198 = conv2d(operand_195, operand_196, dilations=[1, 1], filterLayout="oihw", groups=576, inputLayout="nchw", pads=[1, 1, 1, 1], strides=[2, 2]);
operand_199 = add(operand_198, operand_197);
operand_200 = clamp(operand_199, max_value=6.0, min_value=0.0);
operand_203 = conv2d(operand_200, operand_201, dilations=[1, 1], filterLayout="oihw", groups=1, inputLayout="nchw", pads=[0, 0, 0, 0], strides=[1, 1]);
operand_204 = add(operand_203, operand_202);
operand_207 = conv2d(operand_204, operand_205, dilations=[1, 1], filterLayout="oihw", groups=1, inputLayout="nchw", pads=[0, 0, 0, 0], strides=[1, 1]);
operand_208 = add(operand_207, operand_206);
operand_209 = clamp(operand_208, max_value=6.0, min_value=0.0);
operand_212 = conv2d(operand_209, operand_210, dilations=[1, 1], filterLayout="oihw", groups=960, inputLayout="nchw", pads=[1, 1, 1, 1], strides=[1, 1]);
operand_213 = add(operand_212, operand_211);
operand_214 = clamp(operand_213, max_value=6.0, min_value=0.0);
operand_217 = conv2d(operand_214, operand_215, dilations=[1, 1], filterLayout="oihw", groups=1, inputLayout="nchw", pads=[0, 0, 0, 0], strides=[1, 1]);
operand_218 = add(operand_217, operand_216);
operand_219 = add(operand_218, operand_204);
operand_222 = conv2d(operand_219, operand_220, dilations=[1, 1], filterLayout="oihw", groups=1, inputLayout="nchw", pads=[0, 0, 0, 0], strides=[1, 1]);
operand_223 = add(operand_222, operand_221);
operand_224 = clamp(operand_223, max_value=6.0, min_value=0.0);
operand_227 = conv2d(operand_224, operand_225, dilations=[1, 1], filterLayout="oihw", groups=960, inputLayout="nchw", pads=[1, 1, 1, 1], strides=[1, 1]);
operand_228 = add(operand_227, operand_226);
operand_229 = clamp(operand_228, max_value=6.0, min_value=0.0);
operand_232 = conv2d(operand_229, operand_230, dilations=[1, 1], filterLayout="oihw", groups=1, inputLayout="nchw", pads=[0, 0, 0, 0], strides=[1, 1]);
operand_233 = add(operand_232, operand_231);
operand_234 = add(operand_233, operand_219);
operand_237 = conv2d(operand_234, operand_235, dilations=[1, 1], filterLayout="oihw", groups=1, inputLayout="nchw", pads=[0, 0, 0, 0], strides=[1, 1]);
operand_238 = add(operand_237, operand_236);
operand_239 = clamp(operand_238, max_value=6.0, min_value=0.0);
operand_242 = conv2d(operand_239, operand_240, dilations=[1, 1], filterLayout="oihw", groups=960, inputLayout="nchw", pads=[1, 1, 1, 1], strides=[1, 1]);
operand_243 = add(operand_242, operand_241);
operand_244 = clamp(operand_243, max_value=6.0, min_value=0.0);
operand_247 = conv2d(operand_244, operand_245, dilations=[1, 1], filterLayout="oihw", groups=1, inputLayout="nchw", pads=[0, 0, 0, 0], strides=[1, 1]);
operand_248 = add(operand_247, operand_246);
operand_251 = conv2d(operand_248, operand_249, dilations=[1, 1], filterLayout="oihw", groups=1, inputLayout="nchw", pads=[0, 0, 0, 0], strides=[1, 1]);
operand_252 = add(operand_251, operand_250);
operand_253 = clamp(operand_252, max_value=6.0, min_value=0.0);
operand_254 = globalAveragePool(operand_253, layout="nchw");
operand_255 = reshape(operand_254, newShape=[1, 1280]);
operand_258 = gemm(operand_255, operand_256, a_transpose=False, alpha=1.0, b_transpose=True, beta=1.0, has_bias=False);
operand_259 = add(operand_258, operand_257);
output = softmax(operand_259);
}
outputs {
output;
}
}