Home
last modified time | relevance | path

Searched refs:result_or (Results 1 – 8 of 8) sorted by relevance

/external/tensorflow/tensorflow/compiler/tf2xla/
Dtf2xla_test.cc90 auto result_or = in TEST() local
92 TF_EXPECT_OK(result_or.status()); in TEST()
93 xla::Literal result = std::move(result_or.ValueOrDie()); in TEST()
132 auto result_or = client->ExecuteAndTransfer( in TEST() local
134 TF_EXPECT_OK(result_or.status()); in TEST()
135 xla::Literal result = std::move(result_or.ValueOrDie()); in TEST()
/external/tensorflow/tensorflow/compiler/xrt/
Dxrt_memory_manager.h167 auto result_or = runfn(); in Run() local
168 if (result_or.status().code() != error::RESOURCE_EXHAUSTED) { in Run()
169 return result_or; in Run()
171 TF_RETURN_IF_ERROR(TryFreeMemoryStep(&mrctx, result_or.status())); in Run()
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Dtile_ops.cc87 auto result_or = BroadcastTo(ctx->Input("input"), output_dims); in Compile() local
89 OP_REQUIRES_OK(ctx, result_or.status()); in Compile()
90 auto result = result_or.ValueOrDie(); in Compile()
/external/tflite-support/tensorflow_lite_support/cc/task/
DREADME.md160 StatusOr<ClassificationResult> result_or =
163 if (!result_or.ok()) {
165 << result_or.status().message();
168 ClassificationResult result = result_or.value();
257 StatusOr<DetectionResult> result_or = object_detector->Detect(*frame_buffer);
259 if (!result_or.ok()) {
261 << result_or.status().message();
264 DetectionResult result = result_or.value();
347 StatusOr<SegmentationResult> result_or =
350 if (!result_or.ok()) {
[all …]
/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_evaluator.cc317 auto result_or = Evaluate(instruction); in TryEvaluate() local
318 if (!result_or.ok()) { in TryEvaluate()
319 VLOG(1) << "TryEvaluate failed:" << result_or.status(); in TryEvaluate()
323 *result = result_or.ConsumeValueOrDie(); in TryEvaluate()
557 auto result_or = ElementWiseUnaryOpImpl<bool, Eigen::half>( in HandleIsFinite() local
563 TF_ASSIGN_OR_RETURN(evaluated_[is_finite], std::move(result_or)); in HandleIsFinite()
567 auto result_or = ElementWiseUnaryOpImpl<bool, bfloat16>( in HandleIsFinite() local
573 TF_ASSIGN_OR_RETURN(evaluated_[is_finite], std::move(result_or)); in HandleIsFinite()
577 auto result_or = ElementWiseUnaryOpImpl<bool, float>( in HandleIsFinite() local
581 TF_ASSIGN_OR_RETURN(evaluated_[is_finite], std::move(result_or)); in HandleIsFinite()
[all …]
/external/tensorflow/tensorflow/compiler/xla/service/gpu/
Dgpu_conv_algorithm_picker.cc329 StatusOr<AutotuneResult> result_or(InternalError("Unknown platform.")); in PickBestAlgorithm() local
334 result_or = PickBestAlgorithmNoCacheRocm(instr, allocator, stream); in PickBestAlgorithm()
337 result_or = PickBestAlgorithmNoCacheCuda(instr, allocator, stream); in PickBestAlgorithm()
341 if (result_or.ok()) { in PickBestAlgorithm()
343 CHECK(autotune_cache.insert({key, result_or.ValueOrDie()}).second); in PickBestAlgorithm()
345 return result_or; in PickBestAlgorithm()
/external/tensorflow/tensorflow/compiler/xla/client/lib/
Dself_adjoint_eig.cc463 auto result_or = SortByEigenvalues(result); in SelfAdjointEig() local
464 if (!result_or.ok()) { in SelfAdjointEig()
465 return return_error(result_or.status()); in SelfAdjointEig()
467 return result_or.ValueOrDie(); in SelfAdjointEig()
/external/tensorflow/tensorflow/compiler/mlir/xla/transforms/
Dmhlo_to_lhlo_with_xla.cc129 auto result_or = backend->compiler()->RunHloPassesAndBufferAssignement( in ConvertModule() local
132 TF_RETURN_WITH_CONTEXT_IF_ERROR(result_or.status(), in ConvertModule()
135 std::move(std::get<0>(result_or.ValueOrDie())); in ConvertModule()
137 std::move(std::get<1>(result_or.ValueOrDie())); in ConvertModule()