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

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

A NodeInitializer

Parameters
  • v: vector