Commit 6ea09e6f authored by Steffen Schotthöfer's avatar Steffen Schotthöfer
Browse files

another fix for cluster

parent b0eb1ce8
Pipeline #124392 failed with stage
in 16 minutes and 50 seconds
...@@ -119,7 +119,7 @@ double* MLOptimizer::callNetwork( const unsigned input_size, double* nn_input ) ...@@ -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 ); 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 ); PyObject* inputArray = PyArray_SimpleNewFromData( 1, dims, NPY_DOUBLE, (void*)nn_input );
...@@ -153,7 +153,7 @@ double* MLOptimizer::callNetworkMultiCell( const unsigned batch_size, const unsi ...@@ -153,7 +153,7 @@ double* MLOptimizer::callNetworkMultiCell( const unsigned batch_size, const unsi
ErrorMessages::Error( "'call_network' is null or not callable!", CURRENT_FUNCTION ); 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 ); PyObject* inputArray = PyArray_SimpleNewFromData( 2, dims, NPY_DOUBLE, (void*)nn_input );
......
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