einsums::compute_graph::open_backing#
Note
Generated from the C++ headers by apiary --emit-cpp-docs-json.
Defined in header Einsums/ComputeGraph/TensorBacking.hpp.
-
TensorBacking open_backing(const std::string &kind, const std::vector<std::pair<std::string, std::string>> &location, bool write)#
Open a saved location through its registered kind.
- Parameters:
kind – The kind’s name.
location – The saved location.
write – Whether the backing is a write backing.
- Throws:
std::invalid_argument – when no kind is registered under
kind, or when the kind’sBackingKind::openthrows.- Returns:
The backing, its reader rebuilt (a write backing unprepared).