OpAttributeFactory provides methods to generate operation attributes for tracing. It captures metadata about tensor operations for graph construction and optimization.
Binary op convenience (e.g., add, mul).
Conv2d op attributes: shapes/dtypes + stride/padding/dilation/groups and bias flag.
Generate attributes for scalar operations.
Generate basic shape and dtype attributes for operations.
Unary op convenience (e.g., relu, sigmoid).