syten::load::load | ( | std::string const & | f_, |
bool | fromCache_, | ||
bool | clearAfter_ | ||
) |
Standard ctor, use to load a file into an object.
f_ | filename of the file from which to load the object |
fromCache_ | if true, delete the file on successful load and prefix f with cacheDir |
Operator op = load("file.op", false); // keeps file.op Tensor t = load("tensor.cache", true); // loads from cacheDir + "/tensor.cache", deletes that file