Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Franck Dary
macaon
Commits
8072af59
Commit
8072af59
authored
Nov 07, 2021
by
Franck Dary
Browse files
Concat works with multiple columns
parent
0652f587
Changes
2
Hide whitespace changes
Inline
Side-by-side
common/src/Dict.cpp
View file @
8072af59
...
...
@@ -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
));
...
...
torch_modules/src/ContextModule.cpp
View file @
8072af59
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment