From 3007a5ac0cc0025ceb6edea6da551954404b2413 Mon Sep 17 00:00:00 2001 From: shendiaomo Date: Wed, 4 Nov 2020 17:59:54 +0800 Subject: [PATCH] Fix syntax error and CI --- cgotorch/parallel.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cgotorch/parallel.cc b/cgotorch/parallel.cc index 18dc634..e46f3f0 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()); }