MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / AddEntry

Method AddEntry

oneflow/core/auto_parallel/binary_set.cpp:61–65  ·  view source on GitHub ↗

Add i-th element into this subset

Source from the content-addressed store, hash-verified

59
60// Add i-th element into this subset
61void BinarySet::AddEntry(int32_t i) {
62 int32_t k = i / bit_entry_type_;
63 int32_t j = i % bit_entry_type_;
64 binary_set_values_[k] |= (1 << j);
65}
66// Take i-th element out from this subset
67void BinarySet::DeleteEntry(int32_t i) {
68 int32_t k = i / bit_entry_type_;

Callers 4

PickAndMergeMethod · 0.80
FindUniqueSbpSetsFunction · 0.80
ProxySbpCandidateMethod · 0.80
DfsSbpSetMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected