Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Dsharding_op.cc41 auto shape_or = ctx->builder()->GetShape(input); in Compile() local
42 OP_REQUIRES_OK(ctx, shape_or.status()); in Compile()
46 {input}, shape_or.ValueOrDie())); in Compile()
Dcase_op.cc113 auto shape_or = ctx->builder()->GetShape(ctx->Input(i + 1)); in Compile() local
114 OP_REQUIRES_OK(ctx, shape_or.status()); in Compile()
115 arg.shape = shape_or.ValueOrDie(); in Compile()
315 auto shape_or = b->GetShape(output_handle); in Compile() local
316 if (shape_or.ok()) { in Compile()
318 << xla::ShapeUtil::HumanString(shape_or.ValueOrDie()); in Compile()
338 auto shape_or = b->GetShape(token_output); in Compile() local
339 OP_REQUIRES_OK(ctx, shape_or.status()); in Compile()
340 OP_REQUIRES(ctx, shape_or.ValueOrDie().IsToken(), in Compile()
343 xla::ShapeUtil::HumanString(shape_or.ValueOrDie()))); in Compile()
Dif_op.cc203 auto shape_or = ctx->builder()->GetShape(ctx->Input(i + 1)); in Compile() local
204 OP_REQUIRES_OK(ctx, shape_or.status()); in Compile()
205 arg.shape = shape_or.ValueOrDie(); in Compile()
323 auto shape_or = b->GetShape(token_output); in Compile() local
324 OP_REQUIRES_OK(ctx, shape_or.status()); in Compile()
325 OP_REQUIRES(ctx, shape_or.ValueOrDie().IsToken(), in Compile()
328 xla::ShapeUtil::HumanString(shape_or.ValueOrDie()))); in Compile()
Dtensor_list_ops.cc484 auto shape_or = b->GetShape(buffer); in Compile() local
485 OP_REQUIRES_OK(ctx, shape_or.status()); in Compile()
486 xla::Shape element_shape = shape_or.ConsumeValueOrDie(); in Compile()
530 auto shape_or = b->GetShape(input_tensor); in Compile() local
531 OP_REQUIRES_OK(ctx, shape_or.status()); in Compile()
532 xla::Shape element_shape = shape_or.ConsumeValueOrDie(); in Compile()
Dwhile_op.cc596 auto shape_or = builder->GetShape(token_output); in Compile() local
597 OP_REQUIRES_OK(ctx, shape_or.status()); in Compile()
598 OP_REQUIRES(ctx, shape_or.ValueOrDie().IsToken(), in Compile()
601 xla::ShapeUtil::HumanString(shape_or.ValueOrDie()))); in Compile()
/external/tensorflow/tensorflow/compiler/xla/client/lib/
Dcomparators.cc87 auto shape_or = b->GetShape(lhs_params[0]); in CreateScalarComparisonComputation() local
88 if (!shape_or.ok()) { in CreateScalarComparisonComputation()
89 b->ReportError(shape_or.status()); in CreateScalarComparisonComputation()
92 Shape shape = shape_or.ValueOrDie(); in CreateScalarComparisonComputation()
/external/tensorflow/tensorflow/compiler/mlir/xla/transforms/
Dlegalize_tf_with_tf2xla.cc486 auto shape_or = expr.GetShape(); in LegalizeOp() local
487 if (!shape_or.ok()) { in LegalizeOp()
494 shape_or.ValueOrDie()); in LegalizeOp()
/external/tensorflow/tensorflow/compiler/mlir/xla/
Dmlir_hlo_to_hlo.cc1014 auto shape_or = sorted.builder()->GetShape(sorted); in ExportXlaOp() local
1015 if (!shape_or.ok()) { in ExportXlaOp()
1016 return op.emitError(shape_or.status().ToString()); in ExportXlaOp()
1019 xla::Shape& shape = shape_or.ValueOrDie(); in ExportXlaOp()