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.cc40 Tensor shape_constant(out_dtype_, TensorShape({input_shape.dims()})); in Compile() local
41 OP_REQUIRES_OK(ctx, TensorShapeToConstant(input_shape, &shape_constant)); in Compile()
42 ctx->SetConstantOutput(0, shape_constant); in Compile()
60 Tensor shape_constant(out_dtype_, TensorShape({input_shape.dims()})); in Compile() local
61 OP_REQUIRES_OK(ctx, TensorShapeToConstant(input_shape, &shape_constant)); in Compile()
62 ctx->SetConstantOutput(i, shape_constant); in Compile()
Dshape_util.h30 Tensor* shape_constant);
Dvariable_ops.cc53 Tensor shape_constant(out_dtype_, TensorShape({shape.dims()})); in Compile() local
54 OP_REQUIRES_OK(ctx, TensorShapeToConstant(shape, &shape_constant)); in Compile()
55 ctx->SetConstantOutput(0, shape_constant); in Compile()
/external/tensorflow/tensorflow/compiler/xla/service/llvm_ir/
Dfused_ir_emitter.cc94 llvm::Constant* shape_constant = llvm::ConstantExpr::getBitCast( in HandleConstant() local
97 return IrArray(shape_constant, constant->shape()) in HandleConstant()