Home
last modified time | relevance | path

Searched refs:mutable_element (Results 1 – 22 of 22) sorted by relevance

/external/tensorflow/tensorflow/compiler/xla/
Dshape_tree_test.cc127 *shape_tree.mutable_element({}) = 42; in TEST_F()
129 *shape_tree.mutable_element({}) = 123; in TEST_F()
139 *copy.mutable_element({}) = 99; in TEST_F()
150 *shape_tree.mutable_element({}) = 1; in TEST_F()
151 *shape_tree.mutable_element({0}) = 42; in TEST_F()
152 *shape_tree.mutable_element({1}) = 123; in TEST_F()
153 *shape_tree.mutable_element({2}) = -100; in TEST_F()
196 *shape_tree.mutable_element({0}) = 42; in TEST_F()
197 *shape_tree.mutable_element({1, 1}) = 123; in TEST_F()
198 *shape_tree.mutable_element({2, 0, 1}) = -100; in TEST_F()
[all …]
Dshape_tree.h122 T* mutable_element(ShapeIndexView index);
270 *result.mutable_element(index) = func(t); in Map()
279 *result.mutable_element(index) = func(t); in Map()
602 T* ShapeTree<T>::mutable_element(ShapeIndexView index) { in mutable_element() function
/external/tensorflow/tensorflow/compiler/xla/service/
Dtuple_points_to_analysis.cc111 mutable_element(index)->push_back(&buffer); in AddPointedToBuffer()
121 tree_.mutable_element(index)->tuple_sources.insert(tuple); in add_tuple_source()
259 points_to_set.mutable_element(/*index=*/{})->clear(); in HandleCopy()
355 *points_to_set.mutable_element(target_index) = points_to; in HandleCopyDone()
372 auto top_buffer = points_to_set.mutable_element(ShapeIndex({})); in HandleSend()
377 auto context_buffer = points_to_set.mutable_element(ShapeIndex({1})); in HandleSend()
381 auto token_buffer = points_to_set.mutable_element(ShapeIndex({2})); in HandleSend()
395 *points_to_set.mutable_element(target_index) = points_to; in HandleSend()
431 *points_to_set.mutable_element(target_index) = points_to; in HandleTuple()
471 points_to_set.mutable_element({})->clear(); in HandleTupleSelect()
Dshaped_buffer.h86 *buffers_.mutable_element(index) = buffer; in set_buffer()
186 *buffers_.mutable_element(index) = buffer.Release(); in set_buffer()
188 *buffers_.mutable_element(index) = se::DeviceMemoryBase(); in set_buffer()
Dhlo_replication_analysis.cc315 *shape_tree.mutable_element(index) = in ComputeHloReplicationOnComputation()
343 *shape_tree.mutable_element(index) = in ComputeHloReplication()
356 *shape_tree.mutable_element(index) = true; in ComputeHloReplication()
Dtuple_points_to_analysis.h119 BufferList* mutable_element(const ShapeIndex& index) { in mutable_element() function
120 return &tree_.mutable_element(index)->buffers; in mutable_element()
Dhlo_sharding_test.cc245 *shape_tree1.mutable_element({0}) = HloSharding::Replicate(); in TEST_F()
249 *shape_tree2.mutable_element({0}) = HloSharding::AssignDevice(0); in TEST_F()
259 *shape_tree1.mutable_element({0}) = HloSharding::AssignDevice(0); in TEST_F()
263 *shape_tree2.mutable_element({0}) = HloSharding::AssignDevice(0); in TEST_F()
Dhlo_input_output_alias_config.cc46 (*alias_.mutable_element(output_index)) = in SetUpAlias()
223 *(param_has_seen[alias.parameter_number].mutable_element( in Verify()
Dhlo_liveness_analysis.cc79 *it->second.mutable_element(shape_index) = true; in MarkLiveAtIndex()
102 *it->second.mutable_element(shape_index) = true; in MarkLiveAtAllIndices()
Dexecutable.h103 *buffers_.mutable_element(index) = std::move(buffer); in SetBuffer()
124 return buffers_.mutable_element(index); in MutableBuffer()
Dexecutable.cc38 auto buffer = buffers_.mutable_element(index)->Release(); in ~ExecutionInput()
58 *buffers_.mutable_element(index) = std::move(buffer); in SetUnownedBuffer()
Dhlo_runner.cc138 *buffer_tree.mutable_element(index) = se::OwningDeviceMemory{ in ExecutionInputsFromScopedShapedBuffers()
142 *buffer_tree.mutable_element(index) = execution_input_buffer; in ExecutionInputsFromScopedShapedBuffers()
Dcopy_insertion.cc369 *(param_indices_to_copy.mutable_element(alias.parameter_index)) = in AddCopiesForAliasedInputOutputs()
371 *(output_indices_to_copy.mutable_element(output_index)) = true; in AddCopiesForAliasedInputOutputs()
1064 *it->second.mutable_element(index) = true; in AddSpecialCaseCopies()
Dhlo_sharding.cc336 *result.mutable_element(ShapeIndex({})) = *it; in AsShapeTree()
Ddynamic_dimension_inference.cc1350 dynamic_output_mapping.mutable_element(index)->emplace( in HandleConditional()
1445 dynamic_output_mapping.mutable_element(index)->emplace(dim, in HandleWhile()
Dhlo_computation_test.cc368 *indices_to_copy.mutable_element({0}) = true; in TEST_F()
Dhlo_computation.cc810 *copies_added->mutable_element(leaf_index) = copy; in DeepCopyInstruction()
Dhlo_dataflow_analysis.cc375 return *GetInstructionValueSet(instruction).mutable_element(index); in GetValueSet()
/external/libprotobuf-mutator/examples/xml/
Dxml_converter.cc108 message.mutable_document()->mutable_element()->add_content()->set_char_data( in main()
/external/tensorflow/tensorflow/compiler/xrt/
Dxrt_state.cc396 *parent->buffers_.mutable_element(parent_index) = nullptr; in MakeSubBuffer()
540 *allocation_tmp->buffers_.mutable_element(index) = in MakeTuple()
633 *buffers_.mutable_element(dest_index) = source_buffer; in AliasBufferFrom()
/external/tensorflow/tensorflow/core/tpu/kernels/
Dtpu_execute_op.cc287 TF_ASSIGN_OR_RETURN(*input_buffers->buffers.mutable_element({}), in BuildComputationInputs()
301 auto* in_buffer = input_buffers->buffers.mutable_element(in_index); in BuildComputationInputs()
476 *output_buffers->owned_buffers.mutable_element(out_index) = false; in AllocateOutputTensors()
/external/tensorflow/tensorflow/compiler/xla/service/gpu/
Dhlo_to_ir_bindings.cc166 *(base_ptrs_[&hlo].mutable_element(shape_index)) = typed_ir_value; in BindHloToIrValue()