Home
last modified time | relevance | path

Searched refs:to_shape (Results 1 – 10 of 10) sorted by relevance

/external/tensorflow/tensorflow/compiler/mlir/xla/
Dlayout_util.cc91 auto to_shape, in ReshapeWithCorrectRepresentationAndSharding()
101 &to_shape)); in ReshapeWithCorrectRepresentationAndSharding()
103 if (xla::ShapeUtil::Compatible(original_shape, to_shape)) { in ReshapeWithCorrectRepresentationAndSharding()
105 to_shape.set_dynamic_dimension(i, original_shape.is_dynamic_dimension(i)); in ReshapeWithCorrectRepresentationAndSharding()
108 return xla::Reshape(to_shape, original); in ReshapeWithCorrectRepresentationAndSharding()
/external/tensorflow/tensorflow/compiler/tf2xla/
Dlayout_util.cc106 TF_ASSIGN_OR_RETURN(auto to_shape, in ReshapeWithCorrectRepresentationAndSharding()
114 hlo_sharding, fast_mem, shape_determination_fns, &to_shape)); in ReshapeWithCorrectRepresentationAndSharding()
116 if (xla::ShapeUtil::Compatible(original_shape, to_shape)) { in ReshapeWithCorrectRepresentationAndSharding()
118 to_shape.set_dynamic_dimension(i, original_shape.is_dynamic_dimension(i)); in ReshapeWithCorrectRepresentationAndSharding()
121 return xla::Reshape(to_shape, original); in ReshapeWithCorrectRepresentationAndSharding()
/external/tensorflow/tensorflow/compiler/xla/
Dshape_layout.cc35 Status ShapeLayout::AssignLayoutToShape(Shape* to_shape) const { in AssignLayoutToShape()
36 if (!ShapeUtil::Compatible(*to_shape, shape_)) { in AssignLayoutToShape()
38 ShapeUtil::HumanString(*to_shape), in AssignLayoutToShape()
41 *to_shape = shape_; in AssignLayoutToShape()
Dshape_layout.h43 Status AssignLayoutToShape(Shape* to_shape) const;
Dshape_util.h563 const Shape& from_shape, const Shape& to_shape,
Dshape_util.cc1278 const Shape& from_shape, const Shape& to_shape, in ReshapeLeavesDimensionsUnmodified() argument
1286 ShapeUtil::DimensionsUnmodifiedByReshape(from_shape, to_shape); in ReshapeLeavesDimensionsUnmodified()
/external/tensorflow/tensorflow/compiler/xla/service/
Dbitcast_dtypes_expander.cc42 const Shape& to_shape = instruction->shape(); in ExpandInstruction() local
45 int output_bit_width = primitive_util::BitWidth(to_shape.element_type()); in ExpandInstruction()
58 to_shape.ToString()); in ExpandInstruction()
104 BitcastConvertType(input, to_shape.element_type()); in ExpandInstruction()
Dalgebraic_simplifier.h37 std::function<bool(const Shape& from_shape, const Shape& to_shape)>;
50 bool ReshapeIsBitcast(const Shape& from_shape, const Shape& to_shape) const { in ReshapeIsBitcast() argument
55 return ShapeUtil::ReshapeIsBitcast(from_shape, to_shape); in ReshapeIsBitcast()
57 return reshape_is_bitcast_callback_(from_shape, to_shape); in ReshapeIsBitcast()
Dhlo_element_type_converter.cc88 const Shape& to_shape) { in ConvertTupleElements() argument
96 const Shape& to_ele_shape = ShapeUtil::GetTupleElementShape(to_shape, i); in ConvertTupleElements()
/external/tensorflow/tensorflow/compiler/mlir/tfrt/jit/transforms/
Dtf_jitrt_symbolic_shape_optimization.cc185 ShapeComponentAnalysis& analysis, Value from, Value to_shape) { in isNonExpandingBroadcast() argument
187 auto out_shape = analysis.GetValueInfo(to_shape); in isNonExpandingBroadcast()