Home
last modified time | relevance | path

Searched refs:dynamic_dims (Results 1 – 14 of 14) sorted by relevance

/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Dbroadcast_to_op.cc38 std::vector<bool> dynamic_dims; in Compile() local
40 context, context->ResolveInputDynamismIntoPredVector(1, &dynamic_dims)); in Compile()
41 for (int64 dim = 0; dim < dynamic_dims.size(); ++dim) { in Compile()
42 if (dynamic_dims[dim]) { in Compile()
Dfill_op.cc52 std::vector<int64> dynamic_dims; in Compile() local
53 OP_REQUIRES_OK(ctx, ctx->ConstantInputAsIntVector("dims", &dynamic_dims)); in Compile()
58 if (dynamic_dims[i] == -1) { in Compile()
Dtensor_list_utils.cc271 const std::vector<std::vector<xla::XlaOp>>& dynamic_dims, in CreateZerosTensorListWithShape() argument
275 TF_RET_CHECK(dynamic_dims.size() == tuple_size - 1); in CreateZerosTensorListWithShape()
282 TF_RET_CHECK(dynamic_dims[i].size() == shape.dimensions_size()); in CreateZerosTensorListWithShape()
284 zeros = xla::SetDimensionSize(zeros, dynamic_dims[i][dim], dim); in CreateZerosTensorListWithShape()
333 std::vector<xla::XlaOp> dynamic_dims; in GetInitializedTensorListForElement() local
335 dynamic_dims.push_back(leading_dim_dynamic_size); in GetInitializedTensorListForElement()
343 dynamic_dims.push_back(xla::GetDimensionSize(sub_element, dim)); in GetInitializedTensorListForElement()
345 list_dynamic_dims.push_back(dynamic_dims); in GetInitializedTensorListForElement()
Dtensor_list_ops.cc65 std::vector<xla::XlaOp> dynamic_dims; in GetTensorListDynamicDims() local
67 dynamic_dims.push_back(ctx->Input(1)); in GetTensorListDynamicDims()
69 dynamic_dims.push_back( in GetTensorListDynamicDims()
77 dynamic_dims.push_back(dynamic_dim_size); in GetTensorListDynamicDims()
79 dynamic_dims.push_back( in GetTensorListDynamicDims()
83 list_dynamic_dims.push_back(dynamic_dims); in GetTensorListDynamicDims()
Dwhile_op.cc516 std::vector<xla::XlaOp> dynamic_dims; in Compile() local
525 dynamic_dims.push_back(leading_dim_size); in Compile()
528 dynamic_dims.push_back( in Compile()
540 dynamic_dims.push_back( in Compile()
543 list_dynamic_dims.push_back(dynamic_dims); in Compile()
Dshape_op.cc359 std::vector<xla::XlaOp> dynamic_dims; in Compile() local
363 dynamic_dims.push_back(xla::GetDimensionSize(sub_element, dim)); in Compile()
365 list_dynamic_dims.push_back(dynamic_dims); in Compile()
Dtensor_list_utils.h84 const std::vector<std::vector<xla::XlaOp>>& dynamic_dims, xla::XlaOp* list);
/external/tensorflow/tensorflow/compiler/xla/service/llvm_ir/
Dir_array.cc77 absl::Span<llvm::Value*> dynamic_dims, in Delinearize() argument
79 CHECK_EQ(shape.dimensions_size(), dynamic_dims.size()); in Delinearize()
93 b->CreateURem(quot, dynamic_dims[dimension], "dim_value"); in Delinearize()
94 divisor = b->CreateMul(divisor, dynamic_dims[dimension], "divisor"); in Delinearize()
116 absl::Span<llvm::Value*> dynamic_dims, in Index() argument
127 Delinearize(&multidim_, linear, shape, dynamic_dims, b); in Index()
420 const std::vector<llvm::Value*>& dynamic_dims, in Linearize() argument
424 CHECK_EQ(size(), dynamic_dims.size()); in Linearize()
434 multiplier = builder->CreateMul(multiplier, dynamic_dims[i], in Linearize()
Dloop_emitter.cc39 std::vector<llvm::Value*> dynamic_dims, in LoopEmitter() argument
42 CHECK_EQ(dynamic_dims.size(), shape_.dimensions_size()); in LoopEmitter()
43 dynamic_dims_ = std::move(dynamic_dims); in LoopEmitter()
Dir_array.h72 absl::Span<llvm::Value*> dynamic_dims, llvm::IRBuilder<>* b);
161 llvm::Value* Linearize(const std::vector<llvm::Value*>& dynamic_dims,
187 const Shape& shape, absl::Span<llvm::Value*> dynamic_dims,
Dloop_emitter.h50 std::vector<llvm::Value*> dynamic_dims, llvm::IRBuilder<>* b);
/external/tensorflow/tensorflow/stream_executor/tpu/
Dc_api_conversions.cc236 absl::Span<const bool> dynamic_dims = MakeSpan(c_shape->dynamic_dimensions); in FromC() local
245 dims, dynamic_dims, std::move(tuple_shapes)); in FromC()
/external/tensorflow/tensorflow/compiler/xla/service/cpu/
Dir_emitter.cc2146 std::vector<llvm::Value*> dynamic_dims; in HandleSliceToDynamic() local
2161 dynamic_dims.push_back(b_.CreateIntCast(dyn_dim_size, b_.getInt64Ty(), in HandleSliceToDynamic()
2176 llvm::Value* linear_index = array_index.Linearize(dynamic_dims, &b_); in HandleSliceToDynamic()
2184 dynamic_dims, &b_) in HandleSliceToDynamic()
2193 std::vector<llvm::Value*> dynamic_dims; in HandlePadToStatic() local
2227 dynamic_dims.push_back(b_.CreateIntCast(dyn_dim_size, b_.getInt64Ty(), in HandlePadToStatic()
2240 llvm::Value* linear_index = array_index.Linearize(dynamic_dims, &b_); in HandlePadToStatic()
2248 llvm_ir::LoopEmitter(loop_body_emitter, input_shape, dynamic_dims, &b_) in HandlePadToStatic()
/external/tensorflow/tensorflow/compiler/xla/service/gpu/
Dir_emitter_unnested.cc851 std::vector<llvm::Value*> dynamic_dims; in EmitPadToStaticFromMlir() local
864 dynamic_dims.push_back(dyn_dim_size); in EmitPadToStaticFromMlir()
880 b_.CreateStore(dynamic_dims[i - 1], in EmitPadToStaticFromMlir()
890 for (llvm::Value* dynamic_dim : dynamic_dims) { in EmitPadToStaticFromMlir()
916 absl::MakeSpan(dynamic_dims), &b_); in EmitPadToStaticFromMlir()
979 std::vector<llvm::Value*> dynamic_dims; in EmitSliceToDynamicFromMlir() local
984 dynamic_dims.push_back(dyn_dim_size); in EmitSliceToDynamicFromMlir()
1002 dynamic_dims[dim_index], in EmitSliceToDynamicFromMlir()
1011 for (llvm::Value* dynamic_dim : dynamic_dims) { in EmitSliceToDynamicFromMlir()
1037 absl::MakeSpan(dynamic_dims), &b_); in EmitSliceToDynamicFromMlir()