sglang_v0.5.2/pytorch_2.8.0/third_party/onnx/docs/OpConventions.md

816 B

Operator Conventions

To maintain consistency in operator signatures, we use the following principles:

  • All attribute names should be lower case and use underscores when it helps with readability
  • Any input/output represented by a single letter is capitalized (i.e. X)
  • Any input/output represented by a full word or multiple words is all lower case and uses underscores when it helps with readability
  • Any input/output representing a bias tensor will utilize the name "B"
  • Any input/output representing a weight tensor will utilize the name “W”
  • “axes” is used when an input, output or attribute is representing multiple axes
  • “axis” is used when an input, output or attribute is representing a single axis