einsums::compute_graph::save_graph_file#
Note
Generated from the C++ headers by apiary --emit-cpp-docs-json.
Defined in header Einsums/ComputeGraph/GraphIR.hpp.
-
void save_graph_file(const Graph &graph, const std::string &path, bool allow_machine_dependent)#
Write
graphtopath, throwing on refusal.Added in version 2.0.0.
- Parameters:
graph – The graph to write.
path – Destination file.
allow_machine_dependent – Write the graph even when a structural-resource or tuning pass has changed it; see
SaveOptions::allow_machine_dependent.
- Throws:
std::runtime_error – With the refusal’s message.