Many thanks to @Hzfengsy and @tqchen for pushing through the transition to StructInfo. This PR makes a few tweaks to the AST printer as a result of these changes. In particular, it adds unit tests for printing StructInfo, eliminates outdated comments, prints ndim for ShapeType, corrects a typo (TupleType instead of TupleStructInfo), and also distinguishes between the case of omitting the params in FuncStructInfo (as would happen with opaque FuncStructInfo) and having zero params.
Many thanks to @Hzfengsy and @tqchen for pushing through the transition to StructInfo. This PR makes a few tweaks to the AST printer as a result of these changes. In particular, it adds unit tests for printing StructInfo, eliminates outdated comments, prints
ndim
for ShapeType, corrects a typo (TupleType
instead ofTupleStructInfo
), and also distinguishes between the case of omitting theparams
inFuncStructInfo
(as would happen with opaqueFuncStructInfo
) and having zero params.