Fixed output from operation.

master
Alexander Stoyakin 2019-10-16 18:07:52 +03:00
parent c4307384f3
commit 96a9a1a733
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ CONFIGURABLE_OP_IMPL(adjust_contrast, 1, 1, true, 1, 0) {
NDArray factorT(output->dataType(), block.launchContext()); // = NDArrayFactory::create(factor, block.launchContext());
factorT.p(0, factor);
// this is contrast calculation
*output = (*input - mean) * factorT + mean;
output->assign((*input - mean) * factorT + mean);
return Status::OK();
}