Template Function marian::io::fromVector

Function Documentation

template<typename T>
Item marian::io::fromVector(const std::vector<T> &vec, const std::string &name)

Creates a flat io::Item from a given std::vector so that it can be saved in a npz file or Marian’s native binary format with the given name.