AMDMIGraphX icon indicating copy to clipboard operation
AMDMIGraphX copied to clipboard

Symbolic shapes

Open hgaspar opened this issue 7 months ago • 0 comments

Modern software (e..g pytorch) use symbolic shapes, where the word symbol here is in the sense of sympy (i.e. supporting symbolic manipulations, and symbolic propagation.

For example:

Product of two matrices of symbolic shapes (m,k) and (k,n) is m,n.

Second example: concat of two 1D tensors with symbolic shapes (legths) of "x" and "y" respectively. Obviously the length of an explicitly concatenated 1D tensor is x+y, as a symbol. Strides etc can also be similarly inferred.

hgaspar avatar Jul 01 '24 15:07 hgaspar