Template Function marian::inits::fromVector(std::vector<T>&&)

Function Documentation

template<typename T>
Ptr<NodeInitializer> marian::inits::fromVector(std::vector<T> &&v)

Initialize tensor by moving from the given vector.

Creates a NodeInitializer that will initialize the tensor by moving the values from the given vector into this tensor, and the given vector may be emptied. This version is the rvalue reference overloading.


A NodeInitializer

  • v: vector