提交 c726770d 编写于 作者: L Lasse Espeholt 提交者: TensorFlower Gardener

Add descriptive error message in FunctionLibraryRuntimeImpl

PiperOrigin-RevId: 264605227
上级 27890819
......@@ -1103,7 +1103,7 @@ void FunctionLibraryRuntimeImpl::Run(const Options& opts, Handle handle,
std::vector<Tensor>* rets,
DoneCallback done) {
if (opts.cancellation_manager && opts.cancellation_manager->IsCancelled()) {
done(errors::Cancelled(""));
done(errors::Cancelled("Function was cancelled before it was started"));
return;
}
Options run_opts = opts;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册