Function sequant::detail::rename(Tensor&, PreprocessResult&, const std::function<bool(const Tensor&)>&)¶
Defined in File export.cpp
Function Documentation¶
-
bool sequant::detail::rename(Tensor &tensor, PreprocessResult &result, const std::function<bool(const Tensor&)> &acceptable)¶
Renames the given Tensor to a name that doesn’t collide with any currently loaded object. This may reuse previously used/declares tensors.
- Parameters:
acceptable – If provided, only names for which this predicate returns true are considered. In this case, the tensor need not be loaded.