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.

mgb_cpp_opr.fbs 927 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. include "dtype.fbs";
  2. namespace mgb.serialization.fbs.param;
  3. struct PersistentDTypeScalar {
  4. dtype:DTypeEnum;
  5. storage:[ubyte:4];
  6. }
  7. table MGBAddUpdate {
  8. alpha:PersistentDTypeScalar;
  9. beta:PersistentDTypeScalar;
  10. bias:PersistentDTypeScalar;
  11. }
  12. table Host2DeviceCopy {
  13. enable_value_infer:bool = true;
  14. dump_default_value:bool = false;
  15. allow_cpu_mem_fwd:bool = true;
  16. }
  17. table Dimshuffle {
  18. pattern:[int];
  19. ndim:uint;
  20. }
  21. enum AxisDescMethod : byte {
  22. ADD_1,
  23. REMOVE,
  24. }
  25. struct AxisDesc {
  26. method:AxisDescMethod;
  27. axis:int;
  28. }
  29. table AxisAddRemove {
  30. desc:[AxisDesc];
  31. }
  32. table MGBSleep {
  33. device:bool = true;
  34. host:bool = false;
  35. seconds:double;
  36. }
  37. struct IndexDescMaskItem {
  38. axis:byte;
  39. begin:bool;
  40. end:bool;
  41. step:bool;
  42. idx:bool;
  43. }
  44. table IndexDescMaskDump {
  45. items:[IndexDescMaskItem];
  46. }
  47. table NMSKeep {
  48. iou_thresh:float;
  49. max_output:uint;
  50. }