/external/tensorflow/tensorflow/lite/delegates/gpu/common/ |
D | memory_management_test.cc | 64 ObjectsAssignment<size_t> assignment; in TEST() local 66 AssignObjectsToTensors({}, MemoryStrategy::NAIVE, &assignment).ok()); in TEST() 67 EXPECT_TRUE(assignment.object_ids.empty()); in TEST() 68 EXPECT_TRUE(assignment.object_sizes.empty()); in TEST() 71 AssignObjectsToTensors({}, MemoryStrategy::EQUALITY, &assignment).ok()); in TEST() 72 EXPECT_TRUE(assignment.object_ids.empty()); in TEST() 73 EXPECT_TRUE(assignment.object_sizes.empty()); in TEST() 76 AssignObjectsToTensors({}, MemoryStrategy::GREEDY_IN_ORDER, &assignment) in TEST() 78 EXPECT_TRUE(assignment.object_ids.empty()); in TEST() 79 EXPECT_TRUE(assignment.object_sizes.empty()); in TEST() [all …]
|
D | memory_management.cc | 38 size_t TotalSize(const ObjectsAssignment<size_t>& assignment) { in TotalSize() argument 39 return std::accumulate(assignment.object_sizes.begin(), in TotalSize() 40 assignment.object_sizes.end(), static_cast<size_t>(0)); in TotalSize() 64 ObjectsAssignment<size_t>* assignment) { in BestGreedy() argument 66 GreedyBySizeDistPriorityAssignment(usage_records, assignment)); in BestGreedy() 69 TotalSize(assignment_by_breadth) < TotalSize(*assignment)) { in BestGreedy() 70 std::swap(*assignment, assignment_by_breadth); in BestGreedy() 78 MemoryStrategy strategy, ObjectsAssignment<size_t>* assignment, in AssignObjectsToTensors() argument 82 return NaiveAssignment(usage_records, assignment); in AssignObjectsToTensors() 84 return EqualityAssignmentWithHash(usage_records, assignment); in AssignObjectsToTensors() [all …]
|
D | memory_management.h | 80 ObjectsAssignment<size_t>* assignment); 92 MemoryStrategy strategy, ObjectsAssignment<TensorSizeT>* assignment, 96 return NaiveAssignment(usage_records, assignment); 98 return EqualityAssignment(usage_records, assignment); 109 MemoryStrategy strategy, ObjectsAssignment<size_t>* assignment, 115 MemoryStrategy strategy, ObjectsAssignment<BHWC>* assignment, 121 MemoryStrategy strategy, ObjectsAssignment<uint2>* assignment, 127 MemoryStrategy strategy, ObjectsAssignment<uint3>* assignment, 134 const MemoryStrategy& strategy, OffsetsAssignment* assignment,
|
/external/tensorflow/tensorflow/lite/delegates/gpu/common/memory_management/ |
D | equality_assignment.h | 37 ObjectsAssignment<TensorSizeT>* assignment) { in EqualityAssignmentWithHash() argument 39 assignment->object_sizes.clear(); in EqualityAssignmentWithHash() 40 assignment->object_ids.assign(num_records, kNotAssigned); in EqualityAssignmentWithHash() 53 pool[assignment->object_sizes[object_id]].push_back(object_id); in EqualityAssignmentWithHash() 62 assignment->object_ids[i] = assignment->object_sizes.size(); in EqualityAssignmentWithHash() 63 assignment->object_sizes.push_back(tensor_size); in EqualityAssignmentWithHash() 65 {usage_records[i].last_task, assignment->object_ids[i]}); in EqualityAssignmentWithHash() 69 assignment->object_ids[i] = pool_it->second.back(); in EqualityAssignmentWithHash() 72 {usage_records[i].last_task, assignment->object_ids[i]}); in EqualityAssignmentWithHash() 82 ObjectsAssignment<TensorSizeT>* assignment) { in EqualityAssignment() argument [all …]
|
D | greedy_in_order_assignment.h | 55 ObjectsAssignment<TensorSizeT>* assignment, 59 assignment->object_sizes.clear(); 60 assignment->object_ids.assign(num_records, kNotAssigned); 74 pool.insert({assignment->object_sizes[object_id], object_id}); 126 assignment->object_ids[i] = assignment->object_sizes.size(); 127 assignment->object_sizes.push_back(tensor_size); 130 {usage_records[i].last_task, assignment->object_ids[i]}); 134 assignment->object_ids[i] = shared_id; 135 assignment->object_sizes[shared_id] = 136 std::max(assignment->object_sizes[shared_id], tensor_size); [all …]
|
D | greedy_by_size_assignment.cc | 70 OffsetsAssignment* assignment) { in GreedyBySizeAssignment() argument 72 assignment->offsets.resize(num_tensors); in GreedyBySizeAssignment() 73 assignment->total_size = 0; in GreedyBySizeAssignment() 97 size_t cur_offset = assignment->offsets[allocated_id]; in GreedyBySizeAssignment() 111 if (assignment->total_size < prev_offset) { in GreedyBySizeAssignment() 125 assignment->offsets[*it] <= best_offset) { in GreedyBySizeAssignment() 129 assignment->offsets[rec_with_idx.idx] = best_offset; in GreedyBySizeAssignment() 130 assignment->total_size = in GreedyBySizeAssignment() 131 std::max(assignment->total_size, best_offset + rec->tensor_size); in GreedyBySizeAssignment() 162 ObjectsAssignment<size_t>* assignment) { in GreedyBySizeDistPriorityAssignment() argument [all …]
|
D | greedy_by_breadth_assignment.cc | 52 ObjectsAssignment<size_t>* assignment) { in GreedyByBreadthAssignment() argument 65 assignment->object_sizes.clear(); in GreedyByBreadthAssignment() 66 assignment->object_ids.assign(usage_records.size(), kNotAssigned); in GreedyByBreadthAssignment() 75 if (assignment->object_ids[tensor_info.idx] != kNotAssigned) { in GreedyByBreadthAssignment() 85 const size_t best_size = assignment->object_sizes[best_object]; in GreedyByBreadthAssignment() 86 const size_t cur_size = assignment->object_sizes[obj_id]; in GreedyByBreadthAssignment() 122 assignment->object_sizes.push_back(rec.tensor_size); in GreedyByBreadthAssignment() 128 assignment->object_sizes[best_object] = in GreedyByBreadthAssignment() 129 std::max(assignment->object_sizes[best_object], rec.tensor_size); in GreedyByBreadthAssignment() 131 assignment->object_ids[tensor_info.idx] = best_object; in GreedyByBreadthAssignment() [all …]
|
D | min_cost_flow_assignment.cc | 131 void CalculateAssignment(ObjectsAssignment<size_t>* assignment) { in CalculateAssignment() argument 132 assignment->object_sizes.clear(); in CalculateAssignment() 133 assignment->object_ids.assign(num_tensors_, kNotAssigned); in CalculateAssignment() 138 assignment->object_sizes.push_back( in CalculateAssignment() 139 AssignTensorsToNewSharedObject(LeftPartTwin(edge.dst), assignment)); in CalculateAssignment() 184 ObjectsAssignment<size_t>* assignment) { in AssignTensorsToNewSharedObject() argument 187 assignment->object_ids[tensor_id] = assignment->object_sizes.size(); in AssignTensorsToNewSharedObject() 195 AssignTensorsToNewSharedObject(left_twin, assignment)); in AssignTensorsToNewSharedObject() 220 ObjectsAssignment<size_t>* assignment) { in MinCostFlowAssignment() argument 224 solver.CalculateAssignment(assignment); in MinCostFlowAssignment()
|
D | naive_assignment.h | 37 ObjectsAssignment<TensorSizeT>* assignment) { in NaiveAssignment() argument 38 assignment->object_sizes.resize(usage_records.size()); in NaiveAssignment() 39 assignment->object_ids.assign(usage_records.size(), kNotAssigned); in NaiveAssignment() 42 assignment->object_ids[i] = i; in NaiveAssignment() 43 assignment->object_sizes[i] = record.tensor_size; in NaiveAssignment()
|
/external/tensorflow/tensorflow/compiler/xla/service/gpu/ |
D | stream_assignment_test.cc | 61 std::unique_ptr<StreamAssignment> assignment = AssignStreams(*module); in TEST_F() local 62 EXPECT_EQ(assignment->StreamNumberForHlo(*dot1), in TEST_F() 63 assignment->StreamNumberForHlo(*dot2)); in TEST_F() 82 std::unique_ptr<StreamAssignment> assignment = AssignStreams(*module); in TEST_F() local 83 EXPECT_NE(assignment->StreamNumberForHlo(*dot1), in TEST_F() 84 assignment->StreamNumberForHlo(*dot2)); in TEST_F() 126 std::unique_ptr<StreamAssignment> assignment = AssignStreams(*module); in TEST_F() local 128 EXPECT_NE(assignment->StreamNumberForHlo(*d10), in TEST_F() 129 assignment->StreamNumberForHlo(*d11)); in TEST_F() 131 EXPECT_NE(assignment->StreamNumberForHlo(*d20), in TEST_F() [all …]
|
/external/tensorflow/tensorflow/compiler/xla/service/ |
D | buffer_assignment_test.cc | 320 const BufferAssignment& assignment) { in BuffersDistinct() argument 323 if (assignment.HasTopLevelAllocation(instruction)) { in BuffersDistinct() 325 assignment.GetUniqueTopLevelSlice(instruction).ConsumeValueOrDie()); in BuffersDistinct() 330 if (assignment.HasTopLevelAllocation(instruction)) { in BuffersDistinct() 331 if (a_slices.contains(assignment.GetUniqueTopLevelSlice(instruction) in BuffersDistinct() 1153 auto assignment = RunBufferAssignment(module.get()); in TEST_F() local 1156 EXPECT_TRUE(assignment->HasTopLevelAllocation(exp1)); in TEST_F() 1157 auto& buffer_for_exp1 = GetTopLevelAllocation(*assignment, exp1); in TEST_F() 1158 EXPECT_EQ(buffer_for_exp1, GetTopLevelAllocation(*assignment, tanh)); in TEST_F() 1159 EXPECT_EQ(buffer_for_exp1, GetTopLevelAllocation(*assignment, exp2)); in TEST_F() [all …]
|
D | buffer_assignment.cc | 926 BufferAssignment* assignment) { in LiveRangeInterferes() argument 927 CHECK((assignment->hlo_live_range().total_order_scheduled())); in LiveRangeInterferes() 928 const HloLiveRange& hlo_live_range = assignment->hlo_live_range(); in LiveRangeInterferes() 939 auto can_share_as_operand = [&assignment](const HloValue* user_value, in LiveRangeInterferes() 942 assignment->dataflow_analysis().CanShareOperandBufferWithUser( in LiveRangeInterferes() 986 BufferAssignment* assignment) { in MaybeAssignBuffer() argument 987 CHECK(!assignment->HasAllocation(hlo_buffer)) in MaybeAssignBuffer() 991 << assignment->HloBufferSize(hlo_buffer) in MaybeAssignBuffer() 1000 if (assignment->HloBufferSize(hlo_buffer) > allocation->size()) { in MaybeAssignBuffer() 1002 << assignment->HloBufferSize(hlo_buffer) << " > " in MaybeAssignBuffer() [all …]
|
D | computation_placer.cc | 96 auto assignment = absl::make_unique<DeviceAssignment>( in Deserialize() local 104 (*assignment)(replica, computation) = in Deserialize() 108 return std::move(assignment); in Deserialize() 135 DeviceAssignment assignment(replica_count, computation_count); in AssignDevices() local 141 assignment(replica, computation) = device_id; in AssignDevices() 144 return std::move(assignment); in AssignDevices()
|
/external/tensorflow/tensorflow/compiler/xla/tools/ |
D | driver.cc | 213 std::string BufferAssignmentToString(const BufferAssignment& assignment) { in BufferAssignmentToString() argument 215 for (const auto& p : assignment.param_to_alloc_idx) { in BufferAssignmentToString() 219 auto p2 = assignment.buffers_shape.find(allocation_idx); in BufferAssignmentToString() 220 Check(p2 != assignment.buffers_shape.end(), in BufferAssignmentToString() 223 << ", size = " << assignment.buffers_size[allocation_idx] << "\n"; in BufferAssignmentToString() 232 explicit BufferTable(BufferAssignment assignment) : assignment_(assignment) { in BufferTable() argument 233 int num_buffers = assignment.buffers_size.size(); in BufferTable() 238 static_cast<char*>(malloc(assignment.buffers_size[buffer_idx])); in BufferTable() 277 BufferAssignment assignment; in ParseBufferAssignment() local 290 Check(allocation_idx == assignment.buffers_size.size(), in ParseBufferAssignment() [all …]
|
/external/starlark-go/starlark/testdata/ |
D | assign.star | 1 # Tests of Starlark assignment. 5 # tuple assignment 17 (a, b, c) = 1 ### "got int in sequence assignment" 27 () = 1 ### "got int in sequence assignment" 33 # list assignment 45 [a, b, c] = 1 ### "got int in sequence assignment" 55 [] = 1 ### "got int in sequence assignment" 61 # list-tuple assignment 93 # misc assignment 96 def assignment(): [all …]
|
/external/llvm-project/clang-tools-extra/docs/clang-tidy/checks/ |
D | bugprone-unhandled-self-assignment.rst | 1 .. title:: clang-tidy - bugprone-unhandled-self-assignment 3 bugprone-unhandled-self-assignment 9 Finds user-defined copy assignment operators which do not protect the code 10 against self-assignment either by checking self-assignment explicitly or 15 assignment breaks the object if the copy assignment operator was not written with care. 18 `OOP54-CPP. Gracefully handle self-copy assignment 19 …/wiki.sei.cmu.edu/confluence/display/cplusplus/OOP54-CPP.+Gracefully+handle+self-copy+assignment>`_ 21 A copy assignment operator must prevent that self-copy assignment ruins the 23 and the copy assignment operator first releases the pointed object and 45 the self-assignment check: [all …]
|
D | modernize-use-nullptr.rst | 14 void assignment() { 29 void assignment() { 54 void assignment() { 63 void assignment() {
|
D | cert-oop54-cpp.rst | 3 :http-equiv=refresh: 5;URL=bugprone-unhandled-self-assignment.html 9 `bugprone-unhandled-self-assignment <bugprone-unhandled-self-assignment.html>`_
|
D | cppcoreguidelines-c-copy-assignment-signature.rst | 1 .. title:: clang-tidy - cppcoreguidelines-c-copy-assignment-signature 5 cppcoreguidelines-c-copy-assignment-signature 8 The cppcoreguidelines-c-copy-assignment-signature check is an alias, please see
|
/external/mesa3d/src/compiler/glsl/ |
D | opt_vectorize.cpp | 67 assignment[0] = NULL; in clear() 68 assignment[1] = NULL; in clear() 69 assignment[2] = NULL; in clear() 70 assignment[3] = NULL; in clear() 95 ir_assignment *assignment[4]; member in __anon9f4005840111::ir_vectorize_visitor 185 if (this->assignment[i]) { in try_vectorize() 188 if (this->assignment[i] != this->last_assignment) { in try_vectorize() 189 this->assignment[i]->remove(); in try_vectorize() 263 this->assignment[write_mask_to_swizzle(ir->write_mask)] != NULL || in visit_enter() 381 this->assignment[channel] = ir; in visit_leave()
|
/external/llvm-project/flang/test/Semantics/ |
D | resolve65.f90 | 9 generic :: assignment(=) => binding 17 generic :: assignment(=) => assign_t, assign_t2, assign_t3, assign_t4 24 generic :: assignment(=) => assign_t 51 interface assignment(=) 75 interface assignment(=)
|
/external/tensorflow/tensorflow/compiler/xla/service/llvm_ir/ |
D | dynamic_update_slice_util.cc | 58 const BufferAssignment& assignment) { in CanUpdateDynamicSliceInPlace() argument 61 return assignment.HasTopLevelAllocation(dynamic_update_slice) && in CanUpdateDynamicSliceInPlace() 62 assignment.HasTopLevelAllocation(operand) && in CanUpdateDynamicSliceInPlace() 63 assignment.SharesTopLevelSlice(dynamic_update_slice, operand); in CanUpdateDynamicSliceInPlace() 67 const BufferAssignment& assignment) { in CanEmitFusedDynamicUpdateSliceInPlace() argument 84 return assignment.HasAllocationAt(operand, index) && in CanEmitFusedDynamicUpdateSliceInPlace() 85 assignment.HasAllocationAt(fusion, {}) && in CanEmitFusedDynamicUpdateSliceInPlace() 86 assignment.SharesSliceAtIndex(fusion, {}, operand, index); in CanEmitFusedDynamicUpdateSliceInPlace()
|
/external/llvm-project/clang/test/SemaObjCXX/ |
D | arc-0x.mm | 128 …const U1 &) = default; // expected-warning {{explicitly defaulted copy assignment operator is impl… 129 …U1 & operator=(U1 &&) = default; // expected-warning {{explicitly defaulted move assignment operat… 164 …ctor}} expected-note {{copy assignment operator of 'S1' is implicitly deleted because field '' has… 238 …*x0 = *u0; // expected-error {{cannot be assigned because its copy assignment operator is implicit… 239 …*x1 = *u1; // expected-error {{cannot be assigned because its copy assignment operator is implicit… 240 …*x2 = *u2; // expected-error {{cannot be assigned because its copy assignment operator is implicit… 242 …*x4 = *s0; // expected-error {{cannot be assigned because its copy assignment operator is implicit… 243 …*x5 = *s1; // expected-error {{cannot be assigned because its copy assignment operator is implicit… 244 …*x6 = *s2; // expected-error {{cannot be assigned because its copy assignment operator is implicit… 247 // The diagnostics below refer to the deleted copy constructors and assignment [all …]
|
/external/llvm-project/clang/test/Analysis/ |
D | objc-properties.m | 66 …(__A) = In; // expected-warning {{Direct assignment to an instance variable backing a property; us… 67 …_X = In; // expected-warning {{Direct assignment to an instance variable backing a property; use t… 68 …_Y = In; // expected-warning {{Direct assignment to an instance variable backing a property; use t… 69 …_Z = In; // expected-warning {{Direct assignment to an instance variable backing a property; use t… 70 …_nonSynth = 0; // expected-warning {{Direct assignment to an instance variable backing a property;…
|
/external/python/cpython3/Doc/reference/ |
D | simple_stmts.rst | 75 single: = (equals); assignment statement 76 pair: assignment; statement 80 pair: attribute; assignment 99 An assignment statement evaluates the expression list (remember that this can be 110 or slicing), the mutable object must ultimately perform the assignment and 111 decide about its validity, and may raise an exception if the assignment is 115 .. index:: triple: target; list; assignment 117 single: * (asterisk); in assignment target list 118 single: [] (square brackets); in assignment target list 119 single: () (parentheses); in assignment target list [all …]
|