mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Revert D32175958: Adding Custom Rules to Device Propagation
Test Plan: revert-hammer
Differential Revision:
D32175958 (853298481b
)
Original commit changeset: 26a9ef41e10a
fbshipit-source-id: adcc70687b5b454f358b5446bed2c06d04e61435
This commit is contained in:
committed by
Facebook GitHub Bot
parent
b1ac7f51a1
commit
38af37f409
@ -14,7 +14,6 @@
|
||||
|
||||
#include <algorithm>
|
||||
#include <iostream>
|
||||
#include <memory>
|
||||
#include <set>
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
@ -2304,15 +2303,6 @@ OperatorSet::OperatorSet(std::initializer_list<const char*> sig_literals) {
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<std::shared_ptr<Operator>> OperatorSet::getOps() const {
|
||||
std::vector<std::shared_ptr<Operator>> result;
|
||||
for (const auto& kv : ops) {
|
||||
auto ops_for_symbol = kv.second;
|
||||
result.insert(result.end(), ops_for_symbol.begin(), ops_for_symbol.end());
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
bool Node::isMemberOf(const OperatorSet& os) const {
|
||||
auto it = os.ops.find(kind());
|
||||
if (it == os.ops.end()) {
|
||||
|
Reference in New Issue
Block a user