Template Function marian::inits::fromVector(const std::vector<T>&)¶
Defined in File node_initializers.cpp
Function Documentation¶
-
template<typename
T
>
Ptr<NodeInitializer>marian::inits
::
fromVector
(const std::vector<T> &v) Initialize tensor by copying from the given vector.
Creates a NodeInitializer that will initialize the tensor by copying the values from the given vector
- Return
- Parameters
v
: vector