Function sequant::opt::detail::slot_map_onto

Function Documentation

inline std::optional<SlotMap> sequant::opt::detail::slot_map_onto(const Tensor &layout, const Tensor &candidate, ShapeCompatibility compatibility)
Returns:

The SlotMap that rearranges candidate to match the layout of layout, or std::nullopt if this is not possible under compatibility. Labels are not taken into account.