Index
CostProtocolizer
¶
Bases: FormattedForm, LogicLoader
Pass a program in FormattedForm to ctx, after choosing the protocol which each table reads each level of its formatted tensor with, as optimize_protocols does under cost_model.
Source code in src/finch/autoschedule/protocolizer/protocolize.py
LogicProtocolizer
¶
Bases: FormattedForm, LogicLoader
Pass a program in FormattedForm to ctx, after reading each level of a formatted tensor with an explicit protocol, as protocolize does.
Source code in src/finch/autoschedule/protocolizer/protocolize.py
optimize_protocols(prgm, bindings, stats, stats_factory, cost_model=PROTOCOL_COST_MODEL)
¶
prgm, reading each level with the protocol which costs least under cost_model, as choose_protocols chooses them.