SyTen

◆ load()

syten::load::load ( std::string const &  f_,
bool  fromCache_,
bool  clearAfter_ 
)

Standard ctor, use to load a file into an object.

Parameters
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
Example\n

Operator op = load("file.op", false); // keeps file.op Tensor t = load("tensor.cache", true); // loads from cacheDir + "/tensor.cache", deletes that file