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
4584da0f
Commit
4584da0f
authored
Mar 20, 2021
by
Franck Dary
Browse files
Removed warning
parent
8c6cc68d
Changes
1
Hide whitespace changes
Inline
Side-by-side
torch_modules/src/ModularNetwork.cpp
View file @
4584da0f
...
...
@@ -99,7 +99,7 @@ torch::Tensor ModularNetworkImpl::forward(torch::Tensor input, const std::string
torch
::
Tensor
ModularNetworkImpl
::
extractContext
(
Config
&
config
)
{
torch
::
Tensor
context
=
torch
::
zeros
({
totalInputSize
},
torch
::
TensorOptions
(
torch
::
kLong
).
device
(
NeuralNetworkImpl
::
getDevice
()));
torch
::
Tensor
context
=
torch
::
zeros
({
(
long
)
totalInputSize
},
torch
::
TensorOptions
(
torch
::
kLong
).
device
(
NeuralNetworkImpl
::
getDevice
()));
for
(
auto
&
mod
:
modules
)
mod
->
addToContext
(
context
,
config
);
return
context
;
...
...
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