Function marian::inits::fromItem¶
Defined in File node_initializers.cpp
Function Documentation¶
-
Ptr<NodeInitializer>
marian::inits
::
fromItem
(const io::Item &item)¶ Initialize tensor by copying from the given io::Item.
Creates a NodeInitializer that will initialize the tensor by copying the values from the given io::Item. If this io::Item is a memory-mapped item, then the function will set the memory region pointing to this item. If this io::Item is a regular item, then the function will copy the values from this item.
- Return