Home
last modified time | relevance | path

Searched refs:ConstantInput (Results 1 – 9 of 9) sorted by relevance

/external/tensorflow/tensorflow/compiler/tf2xla/
Dxla_op_kernel.cc130 Status XlaOpKernelContext::ConstantInput(int index, in ConstantInput() function in tensorflow::XlaOpKernelContext
149 Status XlaOpKernelContext::ConstantInput(absl::string_view name, in ConstantInput() function in tensorflow::XlaOpKernelContext
152 return ConstantInput(index, constant_literal); in ConstantInput()
230 TF_RETURN_IF_ERROR(ConstantInput(index, &literal)); in ConstantInputAsIntScalar()
242 TF_RETURN_IF_ERROR(ConstantInput(index, &literal)); in ConstantInputAsFloatScalar()
345 TF_RETURN_IF_ERROR(ConstantInput(index, &literal)); in ConstantInputAsIntVector()
375 TF_RETURN_IF_ERROR(ConstantInput(index, &literal)); in ConstantInputAsInt64Literal()
407 TF_RETURN_IF_ERROR(ConstantInput(index, &literal)); in ConstantInputAsShape()
417 TF_RETURN_IF_ERROR(ConstantInput(index, &literal)); in ConstantInputAsPartialShape()
456 TF_RETURN_IF_ERROR(ConstantInput(i, &(*outputs)[i])); in ConstantInputList()
Dxla_op_kernel.h128 Status ConstantInput(int index, xla::Literal* constant_literal);
129 Status ConstantInput(absl::string_view name, xla::Literal* constant_literal);
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Dstrided_slice_op.cc209 bool begin_is_constant = ctx->ConstantInput(1, &begin_literal).ok(); in Compile()
210 bool end_is_constant = ctx->ConstantInput(2, &end_literal).ok(); in Compile()
212 OP_REQUIRES_OK(ctx, ctx->ConstantInput(3, &strides_literal)); in Compile()
488 bool begin_is_constant = ctx->ConstantInput(1, &begin_literal).ok(); in Compile()
489 bool end_is_constant = ctx->ConstantInput(2, &end_literal).ok(); in Compile()
490 OP_REQUIRES_OK(ctx, ctx->ConstantInput(3, &strides_literal)); in Compile()
623 OP_REQUIRES_OK(ctx, ctx->ConstantInput(1, &begin_literal)); in Compile()
624 OP_REQUIRES_OK(ctx, ctx->ConstantInput(2, &end_literal)); in Compile()
625 OP_REQUIRES_OK(ctx, ctx->ConstantInput(3, &strides_literal)); in Compile()
Dsequence_ops.cc87 OP_REQUIRES_OK(ctx, ctx->ConstantInput(0, &start)); in Compile()
88 OP_REQUIRES_OK(ctx, ctx->ConstantInput(1, &limit)); in Compile()
89 OP_REQUIRES_OK(ctx, ctx->ConstantInput(2, &delta)); in Compile()
Droll_op.cc50 OP_REQUIRES_OK(ctx, ctx->ConstantInput(2, &axis)); in Compile()
Dreverse_op.cc54 OP_REQUIRES_OK(ctx, ctx->ConstantInput(1, &lax)); in Compile()
Dstateful_random_ops.cc183 TF_RETURN_IF_ERROR(ctx->ConstantInput(alg_input_idx, &alg_literal)); in CompileImpl()
442 OP_REQUIRES_OK(ctx, ctx->ConstantInput(alg_input_idx, &alg_literal)); in Compile()
Dcase_op.cc49 ctx->ConstantInput(0, &branch_index_literal).ok(); in GetPrunedBranchesAndIndex()
Dstateless_random_ops_v2.cc178 TF_RETURN_IF_ERROR(ctx->ConstantInput(alg_input_idx, &alg_literal)); in GetAlgorithm()