Commit 8072af59 authored by Franck Dary's avatar Franck Dary
Browse files

Concat works with multiple columns

parent 0652f587
......@@ -74,7 +74,7 @@ void Dict::readFromFile(const char * filename)
void Dict::insert(const std::string & element)
{
if (element.size() > maxEntrySize)
util::myThrow(fmt::format("inserting element of size={} > maxElementSize={}", element.size(), maxEntrySize));
util::myThrow(fmt::format("inserting element of size={} > maxElementSize={} '{}'", element.size(), maxEntrySize, element));
if (elementsToIndexes.count(element))
util::myThrow(fmt::format("element '{}' already in dict", element));
......
......@@ -42,7 +42,7 @@ ContextModuleImpl::ContextModuleImpl(std::string name, const std::string & defin
else if (subModuleType == "GRU")
myModule = register_module("myModule", GRU(columns.size()*inSize, outSize, options));
else if (subModuleType == "Concat")
myModule = register_module("myModule", Concat(inSize, outSize));
myModule = register_module("myModule", Concat(columns.size()*inSize, outSize));
else if (subModuleType == "Transformer")
myModule = register_module("myModule", Transformer(columns.size()*inSize, outSize, options));
else
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment