Function sequant::opt::schedule::record_term¶
Defined in File schedule_pin.cpp
Function Documentation¶
-
TermRecord sequant::opt::schedule::record_term(ExprPtr const &canonical, ExprPtr const &optimized, container::vector<NodeBatchAnnotation> const &nodes)¶
Records the optimizer’s output
optimizedforcanonical(a nested Product over the same factor objects, or the lone factor/Constant itself) and its annotationsnodes(one per tensor x tensor node, left-first post-order, as consumed bybinarize).- Throws:
sequant::Exception – if
canonicalis a mixed product (has a factor that is not a Tensor or TensorPower), or ifoptimized/nodesdo not match it