Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
dereferencing dev_type
Browse files Browse the repository at this point in the history
  • Loading branch information
mseth10 committed Aug 29, 2019
1 parent 7045b09 commit f44e64a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/mxnet/c_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -2016,7 +2016,7 @@ MXNET_DLL int MXGenAtomicSymbolFromSymbol(SymbolHandle sym_handle, SymbolHandle
*/
MXNET_DLL int MXOptimizeForBackend(SymbolHandle sym_handle,
const char* backend_name,
const int* dev_type,
const int dev_type,
SymbolHandle* ret_sym_handle,
const mx_uint len,
NDArrayHandle* in_args_handle,
Expand Down
4 changes: 2 additions & 2 deletions src/c_api/c_api_symbolic.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1218,7 +1218,7 @@ int MXShallowCopySymbol(SymbolHandle src, SymbolHandle* out) {

int MXOptimizeForBackend(SymbolHandle sym_handle,
const char* backend_name,
const int* dev_type,
const int dev_type,
SymbolHandle* ret_sym_handle,
const mx_uint len,
NDArrayHandle* in_args_handle,
Expand All @@ -1232,7 +1232,7 @@ int MXOptimizeForBackend(SymbolHandle sym_handle,
nnvm::Graph g = Symbol2Graph(*s);
if (len) {
NDArray **in_args_ptr = reinterpret_cast<NDArray**>(in_args_handle);
Context default_ctx = Context::Create(static_cast<Context::DeviceType>(*dev_type), 0);
Context default_ctx = Context::Create(static_cast<Context::DeviceType>(dev_type), 0);
mxnet::ShapeVector arg_shapes(len);
nnvm::DTypeVector arg_dtypes(len);
StorageTypeVector arg_stypes(len);
Expand Down

0 comments on commit f44e64a

Please sign in to comment.