From 1b2b2faa200d3a997b3a330a3c06b2dfae942aa6 Mon Sep 17 00:00:00 2001 From: shendiaomo Date: Wed, 4 Nov 2020 17:59:54 +0800 Subject: [PATCH] Fix syntax error --- cgotorch/parallel.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cgotorch/parallel.cc b/cgotorch/parallel.cc index 18dc634..584630a 100644 --- a/cgotorch/parallel.cc +++ b/cgotorch/parallel.cc @@ -31,7 +31,8 @@ const char *DataParallel(char *go_module, void *f, Tensor input, "invalid memory address or nil pointer dereference of input tensor"); } torch::nn::parallel::data_parallel(std::make_shared(go_module, f), - *input) + *input); + return nullptr; } catch (const std::exception &e) { return exception_str(e.what()); }