Home
last modified time | relevance | path

Searched refs:shape_constant (Results 1 – 5 of 5) sorted by relevance

/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Dshape_util.cc25 Tensor* shape_constant) { in TensorShapeToConstant() argument
27 if (shape_constant->dtype() == DT_INT32) { in TensorShapeToConstant()
28 auto vec = shape_constant->vec<int32>(); in TensorShapeToConstant()
39 auto vec = shape_constant->vec<int64>(); in TensorShapeToConstant()
Dshape_op.cc59 Tensor shape_constant(out_dtype_, TensorShape({input_shape.dims()})); in Compile() local
60 OP_REQUIRES_OK(ctx, TensorShapeToConstant(input_shape, &shape_constant)); in Compile()
61 ctx->SetConstantOutput(0, shape_constant); in Compile()
170 Tensor shape_constant(out_dtype_, TensorShape({input_shape.dims()})); in Compile() local
172 TensorShapeToConstant(input_shape, &shape_constant)); in Compile()
173 ctx->SetConstantOutput(i, shape_constant); in Compile()
Dshape_util.h30 Tensor* shape_constant);
Dvariable_ops.cc54 Tensor shape_constant(out_dtype_, TensorShape({shape.dims()})); in Compile() local
55 OP_REQUIRES_OK(ctx, TensorShapeToConstant(shape, &shape_constant)); in Compile()
56 ctx->SetConstantOutput(0, shape_constant); in Compile()
/external/tensorflow/tensorflow/compiler/xla/service/llvm_ir/
Dfused_ir_emitter.cc100 llvm::Constant* shape_constant = in HandleConstant() local
104 return IrArray(shape_constant, constant->shape()) in HandleConstant()