File: OpConventions.md

package info (click to toggle)
onnx 1.17.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 52,856 kB
  • sloc: python: 73,992; cpp: 53,539; makefile: 50; sh: 48; javascript: 1
file content (16 lines) | stat: -rw-r--r-- 816 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!--
Copyright (c) ONNX Project Contributors

SPDX-License-Identifier: Apache-2.0
-->

# 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