Template Function sequant::apply_index_replacements(ArrayLike&, const ReplacementMap&, const bool)¶
Defined in File utils.hpp
Function Documentation¶
-
template<typename ArrayLike, typename ReplacementMap>
void sequant::apply_index_replacements(ArrayLike &tensors, const ReplacementMap &replacements, const bool self_consistent)¶ replaces indices of each tensor in
tensors- Parameters:
self_consistent – if true, the protoindices of an image are replaced too (see replace_proto_indices_of_images)