tflite-metadata.json 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992
  1. [
  2. {
  3. "name": "Add",
  4. "attributes": [
  5. { "name": "fused_activation_function", "type": "ActivationFunctionType", "default": "NONE" },
  6. { "name": "pot_scale_int16", "type": "boolean", "default": true }
  7. ],
  8. "inputs": [
  9. { "name": "A", "type": "T" },
  10. { "name": "B", "type": "T" }
  11. ],
  12. "outputs": [
  13. { "name": "C", "type": "T" }
  14. ]
  15. },
  16. {
  17. "name": "ArgMax",
  18. "attributes": [
  19. { "name": "output_type", "type": "TensorType", "default": "FLOAT32" }
  20. ]
  21. },
  22. {
  23. "name": "ArgMin",
  24. "attributes": [
  25. { "name": "output_type", "type": "TensorType", "default": "FLOAT32" }
  26. ]
  27. },
  28. {
  29. "name": "AveragePool2D",
  30. "category": "Pool",
  31. "attributes": [
  32. { "name": "padding", "type": "Padding", "default": "SAME" },
  33. { "name": "fused_activation_function", "type": "ActivationFunctionType", "default": "NONE" },
  34. { "name": "stride_w", "type": "int32" },
  35. { "name": "stride_h", "type": "int32" },
  36. { "name": "filter_width", "type": "int32" },
  37. { "name": "filter_height", "type": "int32" }
  38. ],
  39. "inputs": [
  40. { "name": "input", "type": "T" }
  41. ],
  42. "outputs": [
  43. { "name": "output", "type": "T" }
  44. ]
  45. },
  46. {
  47. "name": "BatchMatMul",
  48. "attributes": [
  49. { "name": "adj_x", "type": "boolean", "default": false },
  50. { "name": "adj_y", "type": "boolean", "default": false },
  51. { "name": "asymmetric_quantize_inputs", "type": "boolean", "default": false }
  52. ]
  53. },
  54. {
  55. "name": "BidirectionalSequenceLSTM",
  56. "category": "Layer",
  57. "attributes": [
  58. { "name": "fused_activation_function", "type": "ActivationFunctionType", "default": "NONE" },
  59. { "name": "cell_clip", "type": "float32", "default": 0 },
  60. { "name": "proj_clip", "type": "float32", "default": 0 },
  61. { "name": "merge_outputs", "type": "boolean", "default": false },
  62. { "name": "time_major", "type": "boolean", "default": true },
  63. { "name": "asymmetric_quantize_inputs", "type": "boolean", "default": false }
  64. ]
  65. },
  66. {
  67. "name": "BidirectionalSequenceRNN",
  68. "attributes": [
  69. { "name": "time_major", "type": "boolean", "default": false },
  70. { "name": "fused_activation_function", "type": "ActivationFunctionType", "default": "NONE" },
  71. { "name": "merge_outputs", "type": "boolean", "default": false },
  72. { "name": "asymmetric_quantize_inputs", "type": "boolean", "default": false }
  73. ]
  74. },
  75. {
  76. "name": "Call",
  77. "attributes": [
  78. { "name": "subgraph", "type": "uint32", "default": 0 }
  79. ]
  80. },
  81. {
  82. "name": "CallOnce",
  83. "attributes": [
  84. { "name": "init_subgraph_index", "type": "int32", "default": 0 }
  85. ]
  86. },
  87. {
  88. "name": "Cast",
  89. "attributes": [
  90. { "name": "in_data_type", "type": "TensorType", "default": "FLOAT32" },
  91. { "name": "out_data_type", "type": "TensorType", "default": "FLOAT32" }
  92. ],
  93. "inputs": [
  94. { "name": "input" }
  95. ],
  96. "outputs": [
  97. { "name": "output" }
  98. ]
  99. },
  100. {
  101. "name": "ConcatEmbeddings",
  102. "attributes": [
  103. { "name": "num_channels", "type": "int32", "default": 0 },
  104. { "name": "num_columns_per_channel", "type": "int32[]", "default": 0 },
  105. { "name": "embedding_dim_per_channel", "type": "int32[]", "default": 0 }
  106. ]
  107. },
  108. {
  109. "name": "Concatenation",
  110. "category": "Tensor",
  111. "attributes": [
  112. { "name": "axis", "type": "int32", "default": 0 },
  113. { "name": "fused_activation_function", "type": "ActivationFunctionType", "default": "NONE" }
  114. ],
  115. "inputs": [
  116. { "name": "inputs", "option": "variadic" }
  117. ],
  118. "outputs": [
  119. { "name": "output" }
  120. ]
  121. },
  122. {
  123. "name": "Conv2D",
  124. "category": "Layer",
  125. "attributes": [
  126. { "name": "padding", "type": "Padding", "default": "SAME", "description": "`SAME`|`VALID`" },
  127. { "name": "fused_activation_function", "type": "ActivationFunctionType", "default": "NONE", "description": "`NONE`|`RELU`|`RELU6`" },
  128. { "name": "stride_w", "type": "int32", "default": 0, "description": "stride of the filter window" },
  129. { "name": "stride_h", "type": "int32", "default": 0, "description": "stride of the filter window" },
  130. { "name": "dilation_w_factor", "type": "int32", "default": 1 },
  131. { "name": "dilation_h_factor", "type": "int32", "default": 1 }
  132. ],
  133. "inputs": [
  134. { "name": "input", "description": "4D tensor" },
  135. { "name": "filter" },
  136. { "name": "bias", "description": "(optional)" }
  137. ],
  138. "outputs": [
  139. { "name": "output", "description": "result of 2D convolution of the input tensor" }
  140. ]
  141. },
  142. {
  143. "name": "Cumsum",
  144. "attributes": [
  145. { "name": "exclusive", "type": "boolean", "default": false },
  146. { "name": "reverse", "type": "boolean", "default": false }
  147. ]
  148. },
  149. {
  150. "name": "Densify",
  151. "inputs": [
  152. { "name": "input" }
  153. ],
  154. "outputs": [
  155. { "name": "output" }
  156. ]
  157. },
  158. {
  159. "name": "DepthToSpace",
  160. "attributes": [
  161. { "name": "block_size", "type": "int32", "default": 0 }
  162. ]
  163. },
  164. {
  165. "name": "DepthwiseConv2D",
  166. "category": "Layer",
  167. "attributes": [
  168. { "name": "padding", "type": "Padding", "default": "SAME" },
  169. { "name": "fused_activation_function", "type": "ActivationFunctionType", "default": "NONE" },
  170. { "name": "stride_w", "type": "int32", "default": 0 },
  171. { "name": "stride_h", "type": "int32", "default": 0 },
  172. { "name": "depth_multiplier", "type": "int32", "default": 0 },
  173. { "name": "dilation_w_factor", "type": "int32", "default": 1 },
  174. { "name": "dilation_h_factor", "type": "int32", "default": 1 }
  175. ],
  176. "inputs": [
  177. { "name": "input", "type": "T" },
  178. { "name": "weights", "type": "T" },
  179. { "name": "bias", "type": "T" }
  180. ],
  181. "outputs": [
  182. { "name": "output", "type": "T" }
  183. ]
  184. },
  185. {
  186. "name": "Dequantize",
  187. "inputs": [
  188. { "name": "input" }
  189. ],
  190. "outputs": [
  191. { "name": "output" }
  192. ]
  193. },
  194. {
  195. "name": "Div",
  196. "attributes": [
  197. { "name": "fused_activation_function", "type": "ActivationFunctionType", "default": "NONE" }
  198. ],
  199. "inputs": [
  200. { "name": "A", "type": "T" },
  201. { "name": "B", "type": "T" }
  202. ],
  203. "outputs": [
  204. { "name": "C", "type": "T" }
  205. ]
  206. },
  207. {
  208. "name": "EmbeddingLookupSparse",
  209. "attributes": [
  210. { "name": "combiner", "type": "CombinerType", "default": "SUM" }
  211. ]
  212. },
  213. {
  214. "name": "Exp",
  215. "inputs": [
  216. { "name": "input" }
  217. ],
  218. "outputs": [
  219. { "name": "output" }
  220. ]
  221. },
  222. {
  223. "name": "ExpandDims",
  224. "inputs": [
  225. { "name": "input" },
  226. { "name": "axis_param" }
  227. ],
  228. "outputs": [
  229. { "name": "output" }
  230. ]
  231. },
  232. {
  233. "name": "ExtractFeatures",
  234. "inputs": [
  235. { "name": "ngrams" }
  236. ],
  237. "outputs": [
  238. { "name": "features" },
  239. { "name": "weights" }
  240. ]
  241. },
  242. {
  243. "name": "FakeQuant",
  244. "attributes": [
  245. { "name": "min", "type": "float32", "default": 0 },
  246. { "name": "max", "type": "float32", "default": 0 },
  247. { "name": "num_bits", "type": "int32", "default": 0 },
  248. { "name": "narrow_range", "type": "boolean", "default": false }
  249. ]
  250. },
  251. {
  252. "name": "Fill",
  253. "inputs": [
  254. { "name": "dims", "type": "T" },
  255. { "name": "value", "type": "T" }
  256. ],
  257. "outputs": [
  258. { "name": "output", "type": "T" }
  259. ]
  260. },
  261. {
  262. "name": "FullyConnected",
  263. "category": "Layer",
  264. "attributes": [
  265. { "name": "fused_activation_function", "type": "ActivationFunctionType", "default": "NONE" },
  266. { "name": "weights_format", "type": "FullyConnectedOptionsWeightsFormat", "default": "DEFAULT" },
  267. { "name": "keep_num_dims", "type": "boolean", "default": false },
  268. { "name": "asymmetric_quantize_inputs", "type": "boolean", "default": false }
  269. ],
  270. "inputs": [
  271. { "name": "input", "type": "T" },
  272. { "name": "weights", "type": "T" },
  273. { "name": "bias", "type": "T" }
  274. ],
  275. "outputs": [
  276. { "name": "output", "type": "T" }
  277. ]
  278. },
  279. {
  280. "name": "Gather",
  281. "category": "Transform",
  282. "attributes": [
  283. { "name": "axis", "default": 0, "type": "int32" },
  284. { "name": "batch_dims", "type": "int32", "default": 0 }
  285. ],
  286. "inputs": [
  287. { "name": "input" },
  288. { "name": "positions" }
  289. ],
  290. "outputs": [
  291. { "name": "output" }
  292. ]
  293. },
  294. {
  295. "name": "HardSwish",
  296. "category": "Activation",
  297. "inputs": [
  298. { "name": "input" }
  299. ],
  300. "outputs": [
  301. { "name": "output" }
  302. ]
  303. },
  304. {
  305. "name": "Hashtable",
  306. "attributes": [
  307. { "name": "table_id", "type": "int32", "default": 0 },
  308. { "name": "key_dtype", "type": "TensorType", "default": "FLOAT32" },
  309. { "name": "value_dtype", "type": "TensorType", "default": "FLOAT32" }
  310. ]
  311. },
  312. {
  313. "name": "HashtableLookup",
  314. "inputs": [
  315. { "name": "key" },
  316. { "name": "keys" },
  317. { "name": "values" }
  318. ],
  319. "outputs": [
  320. { "name": "value" },
  321. { "name": "hits" }
  322. ]
  323. },
  324. {
  325. "name": "If",
  326. "attributes": [
  327. { "name": "then_subgraph_index", "type": "int32", "default": 0 },
  328. { "name": "else_subgraph_index", "type": "int32", "default": 0 }
  329. ]
  330. },
  331. {
  332. "name": "LeakyRelu",
  333. "attributes": [
  334. { "name": "alpha", "type": "float32", "default": 0 }
  335. ]
  336. },
  337. {
  338. "name": "LocalResponseNormalization",
  339. "category": "Normalization",
  340. "attributes": [
  341. { "name": "radius", "type": "int32", "default": 0 },
  342. { "name": "bias", "type": "float32", "default": 0 },
  343. { "name": "alpha", "type": "float32", "default": 0 },
  344. { "name": "beta", "type": "float32", "default": 0 }
  345. ],
  346. "inputs": [
  347. { "name": "input" }
  348. ],
  349. "outputs": [
  350. { "name": "output" }
  351. ]
  352. },
  353. {
  354. "name": "LogicalOr",
  355. "inputs": [
  356. { "name": "A", "type": "T" },
  357. { "name": "B", "type": "T" }
  358. ],
  359. "outputs": [
  360. { "name": "C", "type": "T" }
  361. ]
  362. },
  363. {
  364. "name": "Logistic",
  365. "inputs": [
  366. { "name": "input" }
  367. ],
  368. "outputs": [
  369. { "name": "output" }
  370. ]
  371. },
  372. {
  373. "name": "LogSoftmax",
  374. "category": "Activation",
  375. "inputs": [
  376. { "name": "input", "type": "T" }
  377. ],
  378. "outputs": [
  379. { "name": "output", "type": "T" }
  380. ]
  381. },
  382. {
  383. "name": "LSHProjection",
  384. "attributes": [
  385. { "name": "type", "type": "LSHProjectionType", "default": "UNKNOWN" }
  386. ],
  387. "inputs": [
  388. { "name": "hash" },
  389. { "name": "input" },
  390. { "name": "weight" }
  391. ],
  392. "outputs": [
  393. { "name": "output" }
  394. ]
  395. },
  396. {
  397. "name": "LSTM",
  398. "category": "Layer",
  399. "attributes": [
  400. { "name": "fused_activation_function", "type": "ActivationFunctionType", "default": "NONE" },
  401. { "name": "cell_clip", "type": "float32", "default": 0 },
  402. { "name": "proj_clip", "type": "float32", "default": 0 },
  403. { "name": "kernel_type", "type": "LSTMKernelType", "default": "FULL" },
  404. { "name": "asymmetric_quantize_inputs", "type": "boolean", "default": false }
  405. ],
  406. "inputs": [
  407. { "name": "input", "type": "T", "description": "Input tensor." },
  408. { "name": "input_input_weights", "type": "T", "option": "optional", "description": "Input to input weights tensor.", "visible": false },
  409. { "name": "input_forget_weights", "type": "T", "description": "Input to forget weights tensor.", "visible": false },
  410. { "name": "input_cell_weights", "type": "T", "description": "Input to cell weights tensor.", "visible": false },
  411. { "name": "input_output_weights", "type": "T", "description": "Input to output weights tensor.", "visible": false },
  412. { "name": "recurrent_input_weights", "type": "T", "option": "optional", "description": "Recurrent to input weights tensor.", "visible": false },
  413. { "name": "recurrent_forget_weights", "type": "T", "description": "Recurrent to forget weights tensor.", "visible": false },
  414. { "name": "recurrent_cell_weights", "type": "T", "description": "Recurrent to cell weights tensor.", "visible": false },
  415. { "name": "recurrent_output_weights", "type": "T", "description": "Recurrent to output weights tensor.", "visible": false },
  416. { "name": "cell_input_weights", "type": "T", "option": "optional", "description": "Cell to input weights tensor.", "visible": false },
  417. { "name": "cell_forget_weights", "type": "T", "option": "optional", "description": "Cell to forget weights tensor.", "visible": false },
  418. { "name": "cell_output_weights", "type": "T", "option": "optional", "description": "Cell to output weights tensor.", "visible": false },
  419. { "name": "input_gate_bias", "type": "T", "option": "optional", "description": "Input gate bias tensor.", "visible": false },
  420. { "name": "forget_gate_bias", "type": "T", "description": "Forget gate bias tensor.", "visible": false },
  421. { "name": "cell_gate_bias", "type": "T", "description": "Cell gate bias tensor.", "visible": false },
  422. { "name": "output_gate_bias", "type": "T", "description": "Output gate bias tensor.", "visible": false },
  423. { "name": "projection_weights", "type": "T", "option": "optional", "description": "Projection weights tensor.", "visible": false },
  424. { "name": "projection_bias", "type": "T", "option": "optional", "description": "Projection bias tensor.", "visible": false }
  425. ],
  426. "outputs": [
  427. { "name": "scratch", "type": "T" },
  428. { "name": "output_state", "type": "T" },
  429. { "name": "cell_state", "type": "T" },
  430. { "name": "output", "type": "T" }
  431. ]
  432. },
  433. {
  434. "name": "Maximum",
  435. "inputs": [
  436. { "name": "input1" },
  437. { "name": "input2" }
  438. ],
  439. "outputs": [
  440. { "name": "output" }
  441. ]
  442. },
  443. {
  444. "name": "MaxPool2D",
  445. "category": "Pool",
  446. "attributes": [
  447. { "name": "padding", "type": "Padding", "default": "SAME" },
  448. { "name": "fused_activation_function", "type": "ActivationFunctionType", "default": "NONE" },
  449. { "name": "stride_w", "type": "int32" },
  450. { "name": "stride_h", "type": "int32" },
  451. { "name": "filter_width", "type": "int32" },
  452. { "name": "filter_height", "type": "int32" }
  453. ],
  454. "inputs": [
  455. { "name": "input", "type": "T" }
  456. ],
  457. "outputs": [
  458. { "name": "output", "type": "T" }
  459. ]
  460. },
  461. {
  462. "name": "Mean",
  463. "attributes": [
  464. { "name": "keep_dims", "type": "boolean" }
  465. ],
  466. "inputs": [
  467. { "name": "input", "type": "T" },
  468. { "name": "axis", "type": "T" }
  469. ],
  470. "outputs": [
  471. { "name": "output", "type": "T" }
  472. ]
  473. },
  474. {
  475. "name": "Minimum",
  476. "inputs": [
  477. { "name": "input1" },
  478. { "name": "input2" }
  479. ],
  480. "outputs": [
  481. { "name": "output" }
  482. ]
  483. },
  484. {
  485. "name": "MirrorPad",
  486. "attributes": [
  487. { "name": "mode", "type": "MirrorPadMode", "default": "REFLECT" }
  488. ]
  489. },
  490. {
  491. "name": "Mul",
  492. "attributes": [
  493. { "name": "fused_activation_function", "type": "ActivationFunctionType", "default": "NONE" }
  494. ],
  495. "inputs": [
  496. { "name": "A", "type": "T" },
  497. { "name": "B", "type": "T" }
  498. ],
  499. "outputs": [
  500. { "name": "C", "type": "T" }
  501. ]
  502. },
  503. {
  504. "name": "Normalize",
  505. "category": "Normalization",
  506. "inputs": [
  507. { "name": "input" }
  508. ],
  509. "outputs": [
  510. { "name": "output" }
  511. ]
  512. },
  513. {
  514. "name": "NotEqual",
  515. "inputs": [
  516. { "name": "A", "type": "T" },
  517. { "name": "B", "type": "T" }
  518. ],
  519. "outputs": [
  520. { "name": "C" }
  521. ]
  522. },
  523. {
  524. "name": "OneHot",
  525. "attributes": [
  526. { "name": "axis", "type": "int32", "default": 0 }
  527. ]
  528. },
  529. {
  530. "name": "Pack",
  531. "attributes": [
  532. { "name": "values_count", "type": "int32", "default": 0 },
  533. { "name": "axis", "type": "int32", "default": 0 }
  534. ]
  535. },
  536. {
  537. "name": "Pad",
  538. "category": "Tensor",
  539. "inputs": [
  540. { "name": "input" },
  541. { "name": "paddings" }
  542. ],
  543. "outputs": [
  544. { "name": "output" }
  545. ]
  546. },
  547. {
  548. "name": "Predict",
  549. "inputs": [
  550. { "name": "hashes" },
  551. { "name": "keys" },
  552. { "name": "labels" },
  553. { "name": "weights" }
  554. ],
  555. "outputs": [
  556. { "name": "label" },
  557. { "name": "weight" }
  558. ]
  559. },
  560. {
  561. "name": "Prelu",
  562. "category": "Activation",
  563. "inputs": [
  564. { "name": "input", "type": "T" },
  565. { "name": "slope", "type": "T" }
  566. ],
  567. "outputs": [
  568. { "name": "output", "type": "T" }
  569. ]
  570. },
  571. {
  572. "name": "Quantize",
  573. "inputs": [
  574. { "name": "input" }
  575. ],
  576. "outputs": [
  577. { "name": "output" }
  578. ]
  579. },
  580. {
  581. "name": "Range",
  582. "attributes": [
  583. { "name": "keep_dims", "type": "boolean" }
  584. ],
  585. "inputs": [
  586. { "name": "start", "type": "T" },
  587. { "name": "limit", "type": "T" },
  588. { "name": "delta", "type": "T" }
  589. ],
  590. "outputs": [
  591. { "name": "output", "type": "T" }
  592. ]
  593. },
  594. {
  595. "name": "ReduceMax",
  596. "attributes": [
  597. { "name": "keep_dims", "type": "boolean" }
  598. ],
  599. "inputs": [
  600. { "name": "input", "type": "T" },
  601. { "name": "axis", "type": "T" }
  602. ],
  603. "outputs": [
  604. { "name": "output", "type": "T" }
  605. ]
  606. },
  607. {
  608. "name": "ReduceMin",
  609. "attributes": [
  610. { "name": "keep_dims", "type": "boolean" }
  611. ],
  612. "inputs": [
  613. { "name": "input", "type": "T" },
  614. { "name": "axis", "type": "T" }
  615. ],
  616. "outputs": [
  617. { "name": "output", "type": "T" }
  618. ]
  619. },
  620. {
  621. "name": "Relu",
  622. "category": "Activation",
  623. "inputs": [
  624. { "name": "input", "type": "T" }
  625. ],
  626. "outputs": [
  627. { "name": "output", "type": "T" }
  628. ]
  629. },
  630. {
  631. "name": "Relu6",
  632. "category": "Activation",
  633. "inputs": [
  634. { "name": "input", "type": "T" }
  635. ],
  636. "outputs": [
  637. { "name": "output", "type": "T" }
  638. ]
  639. },
  640. {
  641. "name": "Reshape",
  642. "category": "Shape",
  643. "attributes": [
  644. { "name": "new_shape", "type": "int32[]", "default": 0 }
  645. ],
  646. "inputs": [
  647. { "name": "data", "type": "T" },
  648. { "name": "shape", "type": "T" }
  649. ],
  650. "outputs": [
  651. { "name": "reshaped", "type": "T" }
  652. ]
  653. },
  654. {
  655. "name": "ResizeBilinear",
  656. "attributes": [
  657. { "name": "align_corners", "default": false, "type": "boolean" },
  658. { "name": "new_height", "type": "int32", "default": 0 },
  659. { "name": "new_width", "type": "int32", "default": 0 },
  660. { "name": "half_pixel_centers", "type": "boolean", "default": false }
  661. ],
  662. "inputs": [
  663. { "name": "input" },
  664. { "name": "size" }
  665. ],
  666. "outputs": [
  667. { "name": "output" }
  668. ]
  669. },
  670. {
  671. "name": "ResizeNearestNeighbor",
  672. "attributes": [
  673. { "name": "align_corners", "type": "boolean", "default": false },
  674. { "name": "half_pixel_centers", "type": "boolean", "default": false }
  675. ]
  676. },
  677. {
  678. "name": "ReverseSequence",
  679. "attributes": [
  680. { "name": "seq_dim", "type": "int32", "default": 0 },
  681. { "name": "batch_dim", "type": "int32", "default": 0 }
  682. ]
  683. },
  684. {
  685. "name": "RNN",
  686. "category": "Layer",
  687. "attributes": [
  688. { "name": "fused_activation_function", "type": "ActivationFunctionType", "default": "NONE" },
  689. { "name": "asymmetric_quantize_inputs", "type": "boolean", "default": false }
  690. ],
  691. "inputs": [
  692. { "name": "X", "type": "T" },
  693. { "name": "W", "type": "T" },
  694. { "name": "R", "type": "T" },
  695. { "name": "b", "type": "T" }
  696. ],
  697. "outputs": [
  698. { "name": "hidden", "type": "T" },
  699. { "name": "output", "type": "T" }
  700. ]
  701. },
  702. {
  703. "name": "Rsqrt",
  704. "inputs": [
  705. { "name": "input", "type": "T" }
  706. ],
  707. "outputs": [
  708. { "name": "output", "type": "T" }
  709. ]
  710. },
  711. {
  712. "name": "Shape",
  713. "attributes": [
  714. { "name": "out_type", "type": "TensorType", "default": "FLOAT32" }
  715. ]
  716. },
  717. {
  718. "name": "Sin",
  719. "inputs": [
  720. { "name": "input" }
  721. ],
  722. "outputs": [
  723. { "name": "output" }
  724. ]
  725. },
  726. {
  727. "name": "SkipGram",
  728. "inputs": [
  729. { "name": "inputs" }
  730. ],
  731. "outputs": [
  732. { "name": "ngrams" }
  733. ],
  734. "attributes": [
  735. { "name": "ngram_size", "type": "int32", "default": 0 },
  736. { "name": "max_skip_size", "type": "int32", "default": 0 },
  737. { "name": "include_all_ngrams", "type": "boolean", "default": false }
  738. ]
  739. },
  740. {
  741. "name": "Slice",
  742. "category": "Tensor",
  743. "inputs": [
  744. { "name": "input" },
  745. { "name": "begin" },
  746. { "name": "size" }
  747. ],
  748. "outputs": [
  749. { "name": "output" }
  750. ]
  751. },
  752. {
  753. "name": "Softmax",
  754. "category": "Activation",
  755. "inputs": [
  756. { "name": "input", "type": "T" }
  757. ],
  758. "outputs": [
  759. { "name": "output", "type": "T" }
  760. ],
  761. "attributes": [
  762. { "name": "beta", "type": "float32", "default": 0 }
  763. ]
  764. },
  765. {
  766. "name": "SpaceToDepth",
  767. "attributes": [
  768. { "name": "block_size", "type": "int32", "default": 0 }
  769. ]
  770. },
  771. {
  772. "name": "SparseToDense",
  773. "attributes": [
  774. { "name": "validate_indices", "type": "boolean", "default": false }
  775. ]
  776. },
  777. {
  778. "name": "Split",
  779. "category": "Tensor",
  780. "inputs": [
  781. { "name": "axis" },
  782. { "name": "input" }
  783. ],
  784. "outputs": [
  785. { "name": "output" }
  786. ],
  787. "attributes": [
  788. { "name": "num_splits", "type": "int32", "default": 0 }
  789. ]
  790. },
  791. {
  792. "name": "SplitV",
  793. "attributes": [
  794. { "name": "num_splits", "type": "int32", "default": 0 }
  795. ]
  796. },
  797. {
  798. "name": "Squeeze",
  799. "category": "Transform",
  800. "inputs": [
  801. { "name": "input" }
  802. ],
  803. "outputs": [
  804. { "name": "output" }
  805. ],
  806. "attributes": [
  807. { "name": "squeeze_dims", "type": "int32[]", "default": 0 }
  808. ]
  809. },
  810. {
  811. "name": "StridedSlice",
  812. "category": "Tensor",
  813. "inputs": [
  814. { "name": "input" },
  815. { "name": "begin" },
  816. { "name": "end" },
  817. { "name": "strides" }
  818. ],
  819. "outputs": [
  820. { "name": "output" }
  821. ],
  822. "attributes": [
  823. { "name": "begin_mask", "type": "int32", "default": 0 },
  824. { "name": "end_mask", "type": "int32", "default": 0 },
  825. { "name": "ellipsis_mask", "type": "int32", "default": 0 },
  826. { "name": "new_axis_mask", "type": "int32", "default": 0 },
  827. { "name": "shrink_axis_mask", "type": "int32", "default": 0 }
  828. ]
  829. },
  830. {
  831. "name": "Sub",
  832. "attributes": [
  833. { "name": "fused_activation_function", "type": "ActivationFunctionType", "default": "NONE" },
  834. { "name": "pot_scale_int16", "type": "boolean", "default": true }
  835. ],
  836. "inputs": [
  837. { "name": "A", "type": "T" },
  838. { "name": "B", "type": "T" }
  839. ],
  840. "outputs": [
  841. { "name": "C", "type": "T" }
  842. ]
  843. },
  844. {
  845. "name": "Sum",
  846. "attributes": [
  847. { "name": "keep_dims", "type": "boolean" }
  848. ],
  849. "inputs": [
  850. { "name": "input", "type": "T" },
  851. { "name": "axis", "type": "T" }
  852. ],
  853. "outputs": [
  854. { "name": "output", "type": "T" }
  855. ]
  856. },
  857. {
  858. "name": "SVDF",
  859. "category": "Layer",
  860. "attributes": [
  861. { "name": "fused_activation_function", "type": "ActivationFunctionType", "default": "NONE" },
  862. { "name": "rank", "type": "int32", "default": 0 },
  863. { "name": "asymmetric_quantize_inputs", "type": "boolean", "default": false }
  864. ],
  865. "inputs": [
  866. { "name": "input", "type": "T" },
  867. { "name": "feature", "type": "T" },
  868. { "name": "time", "type": "T" },
  869. { "name": "bias", "type": "T" }
  870. ],
  871. "outputs": [
  872. { "name": "state", "type": "T" },
  873. { "name": "output", "type": "T" }
  874. ]
  875. },
  876. {
  877. "name": "Tanh",
  878. "category": "Activation",
  879. "inputs": [
  880. { "name": "input", "type": "T" }
  881. ],
  882. "outputs": [
  883. { "name": "output", "type": "T" }
  884. ]
  885. },
  886. {
  887. "name": "Tile",
  888. "inputs": [
  889. { "name": "input" },
  890. { "name": "multipliers" }
  891. ],
  892. "outputs": [
  893. { "name": "output" }
  894. ]
  895. },
  896. {
  897. "name": "Transpose",
  898. "category": "Transform",
  899. "inputs": [
  900. { "name": "input" },
  901. { "name": "perm" }
  902. ],
  903. "outputs": [
  904. { "name": "output" }
  905. ]
  906. },
  907. {
  908. "name": "TransposeConv",
  909. "category": "Layer",
  910. "attributes": [
  911. { "name": "padding", "type": "Padding", "default": "SAME" },
  912. { "name": "stride_w", "type": "int32", "default": 0 },
  913. { "name": "stride_h", "type": "int32", "default": 0 }
  914. ],
  915. "inputs": [
  916. { "name": "output_shape" },
  917. { "name": "weights" },
  918. { "name": "input" }
  919. ],
  920. "outputs": [
  921. { "name": "output" }
  922. ]
  923. },
  924. {
  925. "name": "UnidirectionalSequenceLSTM",
  926. "category": "Layer",
  927. "attributes": [
  928. { "name": "fused_activation_function", "type": "ActivationFunctionType", "default": "NONE" },
  929. { "name": "cell_clip", "type": "float32", "default": 0 },
  930. { "name": "proj_clip", "type": "float32", "default": 0 },
  931. { "name": "time_major", "type": "boolean", "default": false },
  932. { "name": "asymmetric_quantize_inputs", "type": "boolean", "default": false }
  933. ],
  934. "inputs": [
  935. { "name": "input", "type": "T", "description": "Input tensor." },
  936. { "name": "input_input_weights", "type": "T", "option": "optional", "description": "Input to input weights tensor.", "visible": false },
  937. { "name": "input_forget_weights", "type": "T", "description": "Input to forget weights tensor.", "visible": false },
  938. { "name": "input_cell_weights", "type": "T", "description": "Input to cell weights tensor.", "visible": false },
  939. { "name": "input_output_weights", "type": "T", "description": "Input to output weights tensor.", "visible": false },
  940. { "name": "recurrent_input_weights", "type": "T", "option": "optional", "description": "Recurrent to input weights tensor.", "visible": false },
  941. { "name": "recurrent_forget_weights", "type": "T", "description": "Recurrent to forget weights tensor.", "visible": false },
  942. { "name": "recurrent_cell_weights", "type": "T", "description": "Recurrent to cell weights tensor.", "visible": false },
  943. { "name": "recurrent_output_weights", "type": "T", "description": "Recurrent to output weights tensor.", "visible": false },
  944. { "name": "cell_input_weights", "type": "T", "option": "optional", "description": "Cell to input weights tensor.", "visible": false },
  945. { "name": "cell_forget_weights", "type": "T", "option": "optional", "description": "Cell to forget weights tensor.", "visible": false },
  946. { "name": "cell_output_weights", "type": "T", "option": "optional", "description": "Cell to output weights tensor.", "visible": false },
  947. { "name": "input_gate_bias", "type": "T", "option": "optional", "description": "Input gate bias tensor.", "visible": false },
  948. { "name": "forget_gate_bias", "type": "T", "description": "Forget gate bias tensor.", "visible": false },
  949. { "name": "cell_gate_bias", "type": "T", "description": "Cell gate bias tensor.", "visible": false },
  950. { "name": "output_gate_bias", "type": "T", "description": "Output gate bias tensor.", "visible": false },
  951. { "name": "projection_weights", "type": "T", "option": "optional", "description": "Projection weights tensor.", "visible": false },
  952. { "name": "projection_bias", "type": "T", "option": "optional", "description": "Projection bias tensor.", "visible": false },
  953. { "name": "output_state_in", "type": "T", "option": "optional", "visible": false },
  954. { "name": "cell_state_in", "type": "T", "option": "optional", "visible": false },
  955. { "name": "activation", "type": "T", "option": "optional", "visible": false },
  956. { "name": "cell_clip", "type": "T", "option": "optional", "visible": false },
  957. { "name": "proj_clip", "type": "T", "option": "optional", "visible": false },
  958. { "name": "time_major", "type": "T", "option": "optional", "visible": false },
  959. { "name": "input_layer_norm_weights", "type": "T", "option": "optional", "visible": false },
  960. { "name": "forget_layer_norm_weights", "type": "T", "option": "optional", "visible": false },
  961. { "name": "cell_layer_norm_weights", "type": "T", "option": "optional", "visible": false },
  962. { "name": "output_layer_norm_weights", "type": "T", "option": "optional", "visible": false }
  963. ]
  964. },
  965. {
  966. "name": "Unique",
  967. "attributes": [
  968. { "name": "idx_out_type", "type": "TensorType", "default": "INT32" }
  969. ]
  970. },
  971. {
  972. "name": "Unpack",
  973. "attributes": [
  974. { "name": "num", "type": "int32", "default": 0 },
  975. { "name": "axis", "type": "int32", "default": 0 }
  976. ]
  977. },
  978. {
  979. "name": "VarHandle",
  980. "attributes": [
  981. { "name": "container", "type": "string", "default": null },
  982. { "name": "shared_name", "type": "string", "default": null }
  983. ]
  984. },
  985. {
  986. "name": "While",
  987. "attributes": [
  988. { "name": "cond_subgraph_index", "type": "int32", "default": 0 },
  989. { "name": "body_subgraph_index", "type": "int32", "default": 0 }
  990. ]
  991. }
  992. ]