Home
last modified time | relevance | path

Searched refs:current_shape (Results 1 – 6 of 6) sorted by relevance

/external/tensorflow/tensorflow/core/kernels/
Dsparse_concat_op.cc86 const TensorShape current_shape(shapes[i].vec<int64>()); in Compute() local
88 context, current_shape.dims() == input_rank, in Compute()
91 " but got ", current_shape.dims(), " at position ", i)); in Compute()
95 context, input_shape.dim_size(j) == current_shape.dim_size(j), in Compute()
98 " for dimension ", j, " but got ", current_shape.dim_size(j), in Compute()
126 const TensorShape current_shape(shapes[i].vec<int64>()); in Compute() local
131 current_shape, std_order, &tensor)); in Compute()
/external/tensorflow/tensorflow/compiler/tf2tensorrt/utils/
Dtrt_shape_optimization_profiles.h100 auto current_shape = shapes[i]; in IncludesShapes() local
103 if (min[i].nbDims != current_shape.dims()) { in IncludesShapes()
107 for (int dim = 0; dim < current_shape.dims(); dim++) { in IncludesShapes()
108 if ((min[i].d[dim] > current_shape.dim_size(dim)) || in IncludesShapes()
109 (max[i].d[dim] < current_shape.dim_size(dim))) { in IncludesShapes()
/external/tensorflow/tensorflow/lite/toco/graph_transformations/
Didentify_nearest_upsample.cc227 std::vector<int> current_shape = imagined_original_shape; in Run() local
255 current_shape.insert(current_shape.begin() + axis, scale); in Run()
256 CopyShape(current_shape, &pack_output_array); in Run()
/external/tensorflow/tensorflow/compiler/mlir/xla/transforms/
Dmhlo_to_lhlo_with_xla.h194 const xla::Shape& current_shape,
209 const xla::HloInstruction* instr, const xla::Shape& current_shape,
Dmhlo_to_lhlo_with_xla.cc1330 const xla::HloInstruction* instr, const xla::Shape& current_shape, in GetOrCreateArrayView() argument
1348 const Shape static_shape = xla::ShapeUtil::MakeStaticShape(current_shape); in GetOrCreateArrayView()
1399 const HloInstruction* instr, const Shape& current_shape, in GetOrCreateViewImpl() argument
1401 if (current_shape.IsTuple()) { in GetOrCreateViewImpl()
1402 for (int i = 0; i < current_shape.tuple_shapes().size(); ++i) { in GetOrCreateViewImpl()
1405 instr, current_shape.tuple_shapes(i), current_shape_index, values)); in GetOrCreateViewImpl()
1410 if (current_shape.IsArray()) { in GetOrCreateViewImpl()
1411 TF_ASSIGN_OR_RETURN(auto v, GetOrCreateArrayView(instr, current_shape, in GetOrCreateViewImpl()
/external/tensorflow/tensorflow/compiler/mlir/lite/ir/
Dtfl_ops.cc68 SmallVector<int64_t, 4> current_shape; in VerifyOperandsHaveSameShapesOrBroadcastableShape() local
89 current_shape.assign(shape.begin(), shape.end()); in VerifyOperandsHaveSameShapesOrBroadcastableShape()
99 if (!OpTrait::util::getBroadcastedShape(current_shape, shape, in VerifyOperandsHaveSameShapesOrBroadcastableShape()
103 current_shape = result_shape; in VerifyOperandsHaveSameShapesOrBroadcastableShape()