Function sequant::opt::detail::slot_map_onto¶
Defined in File name_recycling.hpp
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
candidateto match the layout oflayout, or std::nullopt if this is not possible undercompatibility. Labels are not taken into account.