Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
KiT-RT
KiT-RT
Commits
6ea09e6f
Commit
6ea09e6f
authored
Dec 21, 2020
by
Steffen Schotthöfer
Browse files
another fix for cluster
parent
b0eb1ce8
Pipeline
#124392
failed with stage
in 16 minutes and 50 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
code/src/optimizers/mloptimizer.cpp
View file @
6ea09e6f
...
...
@@ -119,7 +119,7 @@ double* MLOptimizer::callNetwork( const unsigned input_size, double* nn_input )
ErrorMessages
::
Error
(
"'call_network' is null or not callable!"
,
CURRENT_FUNCTION
);
}
long
int
dims
[
1
]
=
{
input_size
};
long
int
dims
[
1
]
=
{
input_size
};
// Why was this const?
PyObject
*
inputArray
=
PyArray_SimpleNewFromData
(
1
,
dims
,
NPY_DOUBLE
,
(
void
*
)
nn_input
);
...
...
@@ -153,7 +153,7 @@ double* MLOptimizer::callNetworkMultiCell( const unsigned batch_size, const unsi
ErrorMessages
::
Error
(
"'call_network' is null or not callable!"
,
CURRENT_FUNCTION
);
}
const
long
int
dims
[
2
]
=
{
batch_size
,
input_dim
};
long
int
dims
[
2
]
=
{
batch_size
,
input_dim
};
// Why was this const?
PyObject
*
inputArray
=
PyArray_SimpleNewFromData
(
2
,
dims
,
NPY_DOUBLE
,
(
void
*
)
nn_input
);
...
...
jannick.wolters
@jm2154
mentioned in commit
0ced7848
·
Apr 30, 2021
mentioned in commit
0ced7848
mentioned in commit 0ced7848a95ec3a884c096f04e3181d9308e18cf
Toggle commit list
Write
Preview
Markdown
is supported
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