You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

ops.fbs 16 kB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104
  1. /**
  2. * Copyright 2019 Huawei Technologies Co., Ltd
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. namespace mindspore.schema;
  17. enum ResizeMethod: byte {
  18. UNKNOW = -1,
  19. LINEAR = 0,
  20. NEAREST = 1,
  21. CUBIC = 2
  22. }
  23. enum CoordinateTransformMode: byte {
  24. COMMON = 0,
  25. HALF_PIXEL = 1,
  26. PYTORCH_HALF_PIXEL = 2,
  27. TF_HALF_PIXEL = 3,
  28. TF_CROP_AND_RESIZE = 4,
  29. ALIGN_CORNERS = 5,
  30. ASYMMETRIC = 6,
  31. ALIGN_CORNERS_WITH_HALF_PIEXL = 7
  32. }
  33. enum NearestMode : byte {
  34. NORMAL = 0,
  35. ROUND_HALF_DOWN = 1,
  36. ROUND_HALF_UP = 2,
  37. FLOOR = 3,
  38. CEIL = 4
  39. }
  40. enum Format : int {
  41. NCHW = 0,
  42. NHWC,
  43. NHWC4,
  44. HWKC,
  45. HWCK,
  46. KCHW,
  47. CKHW,
  48. KHWC,
  49. CHWK,
  50. HW,
  51. HW4,
  52. NC,
  53. NC4,
  54. NC4HW4 = 100,
  55. NUM_OF_FORMAT
  56. }
  57. enum ActivationType : byte {
  58. NO_ACTIVATION = 0,
  59. RELU = 1,
  60. SIGMOID = 2,
  61. RELU6 = 3,
  62. ELU = 4,
  63. LEAKY_RELU = 5,
  64. ABS = 6,
  65. RELU1 = 7,
  66. SOFTSIGN = 8,
  67. SOFTPLUS = 9,
  68. TANH = 10,
  69. SELU = 11,
  70. HSWISH = 12,
  71. HSIGMOID = 13,
  72. THRESHOLDRELU = 14,
  73. LINEAR = 15,
  74. HARD_TANH = 16,
  75. SIGN = 17,
  76. UNKNOW = 18
  77. }
  78. enum ActivationGradType : byte {
  79. NO_ACTIVATION = 0,
  80. RELU = 1,
  81. SIGMOID = 2,
  82. RELU6 = 3,
  83. ELU = 4,
  84. LEAKY_RELU = 5,
  85. ABS = 6,
  86. RELU1 = 7,
  87. SOFTSIGN = 8,
  88. SOFTPLUS = 9,
  89. TANH = 10,
  90. SELU = 11,
  91. HSWISH = 12,
  92. HSIGMOID = 13,
  93. THRESHOLDRELU = 14,
  94. LINEAR = 15,
  95. UNKNOW = 16
  96. }
  97. enum ReduceType : byte {
  98. REDUCE_MAX = 0,
  99. REDUCE_MEAN = 1,
  100. REDUCE_ALL = 2,
  101. REDUCE_ANY = 3,
  102. REDUCE_LOG_SUM_EXP = 4,
  103. REDUCE_PROD = 5,
  104. REDUCE_SUM = 6,
  105. UNKNOW = 7
  106. }
  107. enum PoolMode : byte {
  108. MAX_POOLING = 0,
  109. MEAN_POOLING = 1,
  110. }
  111. enum EltwiseMode : byte {
  112. PROD = 0,
  113. SUM = 1,
  114. MAXIMUM = 2,
  115. UNKNOW = 3
  116. }
  117. enum PadMode : byte {
  118. NOTSET = 0,
  119. SAME_UPPER = 1,
  120. VALID = 2,
  121. CAFFE = 4,
  122. SAME_LOWER = 5
  123. }
  124. enum RoundMode : byte {
  125. FLOOR = 0,
  126. CEIL = 1
  127. }
  128. enum PaddingMode : byte {
  129. CONSTANT = 0,
  130. REFLECT = 1,
  131. SYMMETRIC = 2,
  132. MODE_RESERVED = 3
  133. }
  134. enum LshProjectionType : byte {
  135. UNKNOWN = 0,
  136. SPARSE = 1,
  137. DENSE = 2
  138. }
  139. table Pad {
  140. paddings: [int];
  141. paddingMode: PaddingMode;
  142. constantValue: float;
  143. }
  144. table Maximum {
  145. }
  146. table Minimum {
  147. }
  148. table Flatten {
  149. }
  150. table FlattenGrad {
  151. }
  152. table Concat {
  153. axis: int;
  154. n: int;
  155. }
  156. table SoftMax {
  157. axis: int;
  158. }
  159. table Activation {
  160. type: ActivationType = 0;
  161. alpha: float = 0.2;
  162. min_val: float = -1.0;
  163. max_val: float = 1.0;
  164. }
  165. table ActivationGrad {
  166. type: ActivationType = 0;
  167. alpha: float = 0.2;
  168. }
  169. table Conv2D {
  170. format: Format = 0;
  171. group: int;
  172. channelIn: int;
  173. channelOut: int;
  174. kernelW: int;
  175. kernelH: int;
  176. strideW: int;
  177. strideH: int;
  178. padMode: PadMode;
  179. padUp: int;
  180. padDown: int;
  181. padLeft: int;
  182. padRight: int;
  183. dilateW: int;
  184. dilateH: int;
  185. hasBias: bool = false;
  186. activationType: ActivationType = 0;
  187. }
  188. table Conv2DGradFilter {
  189. format: Format = 0;
  190. group: int;
  191. channelIn: int;
  192. channelOut: int;
  193. kernelW: int;
  194. kernelH: int;
  195. strideW: int;
  196. strideH: int;
  197. padMode: PadMode;
  198. padUp: int;
  199. padDown: int;
  200. padLeft: int;
  201. padRight: int;
  202. dilateW: int;
  203. dilateH: int;
  204. hasBias: bool = false;
  205. activationType: ActivationType = 0;
  206. }
  207. table Conv2DGradInput {
  208. format: Format = 0;
  209. group: int;
  210. channelIn: int;
  211. channelOut: int;
  212. kernelW: int;
  213. kernelH: int;
  214. strideW: int;
  215. strideH: int;
  216. padMode: PadMode;
  217. padUp: int;
  218. padDown: int;
  219. padLeft: int;
  220. padRight: int;
  221. dilateW: int;
  222. dilateH: int;
  223. hasBias: bool = false;
  224. activationType: ActivationType = 0;
  225. }
  226. table GroupConv2DGradInput {
  227. format: Format = 0;
  228. group: int;
  229. channelIn: int;
  230. channelOut: int;
  231. kernelW: int;
  232. kernelH: int;
  233. strideW: int;
  234. strideH: int;
  235. padMode: PadMode;
  236. padUp: int;
  237. padDown: int;
  238. padLeft: int;
  239. padRight: int;
  240. dilateW: int;
  241. dilateH: int;
  242. hasBias: bool = false;
  243. activationType: ActivationType = 0;
  244. }
  245. table FusedBatchNorm {
  246. epsilon: float = 0.00001; // eg. epsilon=0.001
  247. momentum: float = 0.9;
  248. spatial: int = 1;
  249. }
  250. table BatchNorm {
  251. epsilon: float = 0.00001; // eg. epsilon=0.001
  252. }
  253. table BiasGrad {
  254. axis: [int];
  255. }
  256. table SoftmaxCrossEntropy {
  257. axis: [int];
  258. }
  259. table make_tuple {
  260. }
  261. table PoolingGrad {
  262. format: Format = 0;
  263. poolingMode: PoolMode;
  264. global: bool = false;
  265. windowW: int;
  266. windowH: int;
  267. strideW: int;
  268. strideH: int;
  269. padMode: PadMode;
  270. padUp: int;
  271. padDown: int;
  272. padLeft: int;
  273. padRight: int;
  274. roundMode: RoundMode;
  275. }
  276. table Shape {
  277. }
  278. table ConstantOfShape{
  279. dataType: int;
  280. value: [float];
  281. }
  282. table Nchw2Nhwc {
  283. }
  284. table Nhwc2Nchw {
  285. }
  286. table FakeQuantWithMinMaxVars {
  287. narrowRange: bool;
  288. numBits: int;
  289. }
  290. table BiasAdd {
  291. axis: [int];
  292. }
  293. table ROIPooling {
  294. pooledH: int;
  295. pooledW: int;
  296. scale: float;
  297. }
  298. table Pooling {
  299. format: Format = 0;
  300. poolingMode: PoolMode;
  301. global: bool = false;
  302. windowW: int;
  303. windowH: int;
  304. strideW: int;
  305. strideH: int;
  306. padMode: PadMode;
  307. padUp: int;
  308. padDown: int;
  309. padLeft: int;
  310. padRight: int;
  311. roundMode: RoundMode;
  312. activationType: ActivationType = 0;
  313. avgMode: int = 0;
  314. }
  315. table DepthwiseConv2D {
  316. format: Format = 0;
  317. channelIn: int;
  318. channelMultiplier: int;
  319. kernelW: int;
  320. kernelH: int;
  321. strideW: int;
  322. strideH: int;
  323. padMode: PadMode;
  324. padUp: int;
  325. padDown: int;
  326. padLeft: int;
  327. padRight: int;
  328. dilateW: int;
  329. dilateH: int;
  330. hasBias: bool = false;
  331. activationType: ActivationType = 0;
  332. }
  333. table DeDepthwiseConv2D {
  334. format: Format = 0;
  335. channelIn: int;
  336. channelMultiplier: int;
  337. kernelW: int;
  338. kernelH: int;
  339. strideW: int;
  340. strideH: int;
  341. padMode: PadMode;
  342. padUp: int;
  343. padDown: int;
  344. padLeft: int;
  345. padRight: int;
  346. dilateW: int;
  347. dilateH: int;
  348. hasBias: bool = false;
  349. activationType: ActivationType = 0;
  350. }
  351. table Resize {
  352. format: Format = 0;
  353. method: ResizeMethod;
  354. newHeight: long;
  355. newWidth: long;
  356. alignCorners: bool = false; // DEPRECATED IN FUTURE: use 'coordinateTransformMode' instead.
  357. preserveAspectRatio: bool = false;
  358. coordinateTransformMode : CoordinateTransformMode;
  359. cubicCoeff : float;
  360. excludeOutside : int;
  361. extrapolationValue : float = 0;
  362. nearestMode : NearestMode;
  363. }
  364. table DetectionPostProcess {
  365. format: Format = 0;
  366. inputSize: int;
  367. hScale: float;
  368. wScale: float;
  369. xScale: float;
  370. yScale: float;
  371. NmsIouThreshold: float;
  372. NmsScoreThreshold: float;
  373. MaxDetections: long;
  374. DetectionsPerClass: long;
  375. MaxClassesPerDetection: long;
  376. NumClasses: long;
  377. UseRegularNms: bool;
  378. OutQuantized: bool;
  379. }
  380. table FullConnection {
  381. hasBias: bool;
  382. axis: int;
  383. useAxis: bool;
  384. activationType: ActivationType = 0;
  385. }
  386. // Mean(input_tensor, axis, keep_dims)
  387. table Mean {
  388. axis: [int];
  389. keepDims: bool = false;
  390. }
  391. table DeConv2D {
  392. format: Format = 0;
  393. group: int;
  394. channelIn: int;
  395. channelOut: int;
  396. kernelW: int;
  397. kernelH: int;
  398. strideW: int;
  399. strideH: int;
  400. padMode: PadMode;
  401. padUp: int;
  402. padDown: int;
  403. padLeft: int;
  404. padRight: int;
  405. dilateW: int;
  406. dilateH: int;
  407. hasBias: bool = false;
  408. activationType: ActivationType = 0;
  409. }
  410. table DeConv2DGradFilter {
  411. format: Format = 0;
  412. group: int;
  413. channelIn: int;
  414. channelOut: int;
  415. kernelW: int;
  416. kernelH: int;
  417. strideW: int;
  418. strideH: int;
  419. padMode: PadMode;
  420. padUp: int;
  421. padDown: int;
  422. padLeft: int;
  423. padRight: int;
  424. dilateW: int;
  425. dilateH: int;
  426. hasBias: bool = false;
  427. activationType: ActivationType = 0;
  428. }
  429. table BNGrad {
  430. eps : float;
  431. momentum: float;
  432. }
  433. table BNGradInput {
  434. eps : float;
  435. momentum: float;
  436. }
  437. table Scale {
  438. axis: int;
  439. activationType: ActivationType = 0;
  440. }
  441. table Eltwise {
  442. mode: EltwiseMode;
  443. }
  444. table Add {
  445. activationType: ActivationType = 0;
  446. }
  447. table Sub {
  448. activationType: ActivationType = 0;
  449. }
  450. table Mul {
  451. activationType: ActivationType = 0;
  452. }
  453. table Div {
  454. activationType: ActivationType = 0;
  455. }
  456. table AddGrad {
  457. }
  458. table SubGrad {
  459. }
  460. table MulGrad {
  461. }
  462. table DivGrad {
  463. }
  464. table RealDiv {
  465. }
  466. table Rsqrt {
  467. }
  468. table Equal {
  469. }
  470. table Less {
  471. }
  472. table Greater {
  473. }
  474. table NotEqual {
  475. }
  476. table LessEqual {
  477. }
  478. table GreaterEqual {
  479. }
  480. table Min {
  481. }
  482. table Slice {
  483. format: Format = 0;
  484. axes: [int];
  485. begin: [int];
  486. size: [int];
  487. }
  488. table Floor {
  489. }
  490. table Abs {
  491. }
  492. table Neg {
  493. }
  494. table NegGrad {
  495. }
  496. table Exp {
  497. base : float = -1.0;
  498. scale : float = 1.0;
  499. shift : float = 0.0;
  500. }
  501. table Cos {
  502. }
  503. table Sin {
  504. }
  505. table Sqrt {
  506. }
  507. table Square {
  508. }
  509. table Ceil {
  510. }
  511. table Log {
  512. }
  513. table LogGrad {
  514. }
  515. table Tan {
  516. }
  517. table Atan {
  518. }
  519. table Asin {
  520. }
  521. table Reshape {
  522. format: Format = 0;
  523. shape: [long];
  524. }
  525. table Power {
  526. power: float;
  527. scale: float;
  528. shift: float;
  529. }
  530. table PowerGrad {
  531. power: float;
  532. scale: float;
  533. shift: float;
  534. }
  535. table ArgMax {
  536. axis: int;
  537. outMaxValue: bool;
  538. topK: int = 1;
  539. keepDims: bool;
  540. axisType: int;
  541. }
  542. table ArgMin {
  543. axis: int;
  544. outMaxValue: bool;
  545. topK: int = 1;
  546. keepDims: bool;
  547. axisType: int;
  548. }
  549. table NetOutput {
  550. }
  551. table MatMul {
  552. broadcast : bool = false;
  553. transposeA : bool = false;
  554. transposeB : bool = false;
  555. }
  556. table PReLU {
  557. channelShared : bool = false;
  558. slope: [float];
  559. }
  560. table LeakyReLU {
  561. negativeSlope: float;
  562. }
  563. table StridedSlice {
  564. beginMask: int;
  565. endMask: int;
  566. ellipsisMask: int;
  567. newAxisMask: int;
  568. shrinkAxisMask: int;
  569. begin: [int];
  570. end: [int];
  571. stride: [int];
  572. isScale: [int];
  573. }
  574. table Stack {
  575. axis: int;
  576. n: int;
  577. isScale: [int];
  578. }
  579. table Range {
  580. dType: int;
  581. start: int;
  582. limit: int;
  583. delta: int;
  584. }
  585. table ExpandDims {
  586. dim: int;
  587. }
  588. table Tile {
  589. multiples: [int];
  590. dims: [int];
  591. }
  592. table Cast {
  593. srcT: int;
  594. dstT: int;
  595. }
  596. table QuantDTypeCast {
  597. srcT: int;
  598. dstT: int;
  599. }
  600. table Split {
  601. numberSplit: int;
  602. sizeSplits: [int];
  603. splitDim: int;
  604. }
  605. table Crop {
  606. axis : long;
  607. offsets : [long];
  608. }
  609. table Permute {
  610. order: [long];
  611. }
  612. table Clip {
  613. max: float;
  614. min: float;
  615. }
  616. table Constant {
  617. }
  618. table Elu {
  619. alpha: float = 1.0;
  620. }
  621. table Broadcast {
  622. }
  623. table BroadcastTo {
  624. dst_shape: [int];
  625. }
  626. table Lrn {
  627. alpha: float = 0.0001;
  628. beta: float = 0.75;
  629. bias: float = 1.0;
  630. size: int;
  631. }
  632. enum ReduceMode : byte {
  633. ReduceMean = 0,
  634. ReduceMax = 1,
  635. ReduceMin = 2,
  636. ReduceProd = 3,
  637. ReduceSum = 4,
  638. ReduceSumSquare = 5,
  639. ReduceASum = 6
  640. }
  641. table Reduce {
  642. axes: [int];
  643. keepDims: int;
  644. mode: ReduceMode;
  645. reduceToEnd: bool = false;
  646. coeff: float = 1.0;
  647. }
  648. table Transpose {
  649. perm: [int];
  650. conjugate: bool = false;
  651. }
  652. table Squeeze {
  653. axis: [int];
  654. }
  655. table Unsqueeze {
  656. axis: [int];
  657. }
  658. table Upsample {
  659. mode: string;
  660. scales: [float];
  661. }
  662. table Dropout {
  663. ratio : float = 0.5;
  664. }
  665. table LocalResponseNormalization {
  666. depth_radius: int;
  667. bias: float;
  668. alpha: float;
  669. beta: float;
  670. }
  671. table ZerosLike {
  672. }
  673. table TopK {
  674. k : int;
  675. sorted : bool = true;
  676. }
  677. table SpaceToDepth {
  678. blockSize : int;
  679. format: Format = 0;
  680. }
  681. table SpaceToBatch {
  682. blockShape : [int];
  683. paddings : [int];
  684. }
  685. table SparseToDense {
  686. validateIndices: bool;
  687. }
  688. table ReverseSequence {
  689. seqAxis: int;
  690. batchAxis: int;
  691. }
  692. table Rank {
  693. }
  694. table Gather {
  695. axis: int;
  696. batchDims: int;
  697. }
  698. table GatherNd {
  699. batchDims: int;
  700. }
  701. table Fill {
  702. dims: [int];
  703. }
  704. table DepthToSpace {
  705. blockSize: int;
  706. format: Format = 0;
  707. }
  708. table BatchToSpace {
  709. blockShape: [int];
  710. crops: [int];
  711. }
  712. table BatchToSpaceND {
  713. blockShape: [int];
  714. crops: [int];
  715. }
  716. table AddN {
  717. N: int;
  718. }
  719. table EmbeddingLookup {
  720. maxNorm: float = 0.0;
  721. }
  722. table EmbeddingLookupSparse {
  723. spIds: [int];
  724. spWeights: [float];
  725. //combiner: Combiner=0;
  726. maxNortm: float;
  727. }
  728. table FloorDiv {
  729. }
  730. table FloorMod {
  731. }
  732. table L2Norm {
  733. axis: [int];
  734. epsilon: float;
  735. activationType: ActivationType = 0;
  736. }
  737. table LogicalAnd {
  738. }
  739. table LogicalOr {
  740. }
  741. table LogicalXor {
  742. }
  743. table LogicalNot {
  744. }
  745. table MatrixDiag {
  746. k: int;
  747. numRows: int;
  748. numCols: int;
  749. paddingValue: float;
  750. }
  751. table Select {
  752. }
  753. table TfReduce {
  754. type: ReduceType = 7;
  755. }
  756. table Reverse {
  757. axis: [int];
  758. }
  759. table Round {
  760. }
  761. table Scatter {
  762. }
  763. table ScatterND {
  764. }
  765. table Unique {
  766. outType: int;
  767. }
  768. table Unstack {
  769. num: int;
  770. axis: int;
  771. }
  772. table OnnxInt8Quantize {
  773. }
  774. table OnnxInt8Dequantize {
  775. }
  776. table FakeQuantWithMinMax {
  777. }
  778. table FakeQuantWithMinMaxPerChannel {
  779. }
  780. table BatchNormFold {
  781. }
  782. table MulFold {
  783. }
  784. table AddFold {
  785. }
  786. table SquaredDifference {
  787. }
  788. table TupleGetItem {
  789. }
  790. table ApplyMomentum {
  791. gradientScale: float;
  792. useNesterov: bool;
  793. }
  794. table Sgd {
  795. weightDecay: float;
  796. dampening: float;
  797. useNesterov: bool;
  798. }
  799. table Adam {
  800. useNesterov: bool;
  801. }
  802. table Assign {
  803. }
  804. table Where{
  805. condition: [bool];
  806. }
  807. table OneHot {
  808. axis: int;
  809. }
  810. table Lstm{
  811. bidirection: bool = false;
  812. }
  813. table PriorBox {
  814. min_sizes: [int];
  815. max_sizes: [int];
  816. aspect_ratios: [float];
  817. variances: [float];
  818. image_size_w: int;
  819. image_size_h: int;
  820. step_w: float;
  821. step_h: float;
  822. clip: bool = true;
  823. flip: bool = true;
  824. offset: float;
  825. }
  826. table SpaceToBatchND {
  827. blockShape : [int];
  828. paddings : [int];
  829. }
  830. table MakeTuple {
  831. }
  832. table ToFormat {
  833. srcT: int;
  834. dstT: int;
  835. }
  836. table Depend {
  837. }
  838. table Return {
  839. }
  840. table Proposal {
  841. feat_stride : float;
  842. base_size : float;
  843. min_size : float;
  844. ratio : [float];
  845. scale : [float];
  846. pre_nms_topn : int;
  847. post_nms_topn : int;
  848. nms_thresh : float;
  849. }
  850. table Custom {
  851. custom : [ubyte];
  852. }
  853. table BlackBox {
  854. id : string;
  855. size : int;
  856. address : [ubyte];
  857. }
  858. table LshProjection {
  859. type : LshProjectionType;
  860. }
  861. table HashtableLookup {
  862. }
  863. table SkipGram {
  864. includeAllGrams : bool;
  865. maxSkipSize : int;
  866. ngramSize : int;
  867. }
  868. table CustomPredict {
  869. outputNum : int;
  870. weightThreshold : float;
  871. }
  872. table CustomNormalize {
  873. }
  874. table CustomExtractFeatures {
  875. }
  876. table AudioSpectrogram {
  877. windowSize : int;
  878. stride : int;
  879. magSquare : bool;
  880. }
  881. table Mfcc {
  882. freqUpperLimit : float;
  883. freqLowerLimit : float;
  884. filterBankChannelNum : int;
  885. dctCoeffNum : int;
  886. }
  887. table Rfft {
  888. fftLength : int;
  889. }
  890. table FftReal {
  891. }
  892. table FftImag {
  893. }
  894. table NonMaxSuppression {
  895. centerPointBox : int = 0;
  896. }
  897. table InstanceNorm {
  898. epsilon : float = 0.00001;
  899. }
  900. table Loop {
  901. subGraphIndex : int;
  902. }
  903. table Identity {
  904. }
  905. table LayerNorm {
  906. normalizedShape : [int];
  907. epsilon : float = 0.00001;
  908. elementwiseAffine : bool;
  909. }