Struct OptimizeOptions

Struct Documentation

struct OptimizeOptions

Options that control behavior of sequant::optimize.

Public Members

OptFor opt_for = OptFor::Flops

Cost metric to minimize.

ReorderSum reorder = ReorderSum::Reorder

Whether to reorder summands so terms with shared intermediates appear closer to each other.

SubnetCSE subnet_cse = SubnetCSE::Disable

Whether single-term optimization should perform subnetwork common-subexpression recognition. Disabled by default; enabling can reduce op counts at the cost of additional optimization time.

index_to_extent_t idx_to_extent = {}

Caller-supplied Index to extent provider. If empty, defaults to IndexSpace::approximate_size().