mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-28 18:54:57 +08:00
fix missing-prototypes warnings in torch_cpu (Part 4) (#100849)
This PR fixes more missing-prototypes violations in the torch_cpu source following PRs #100053, #100147 and #100245 Pull Request resolved: https://github.com/pytorch/pytorch/pull/100849 Approved by: https://github.com/albanD
This commit is contained in:
@ -522,7 +522,7 @@ struct ExitTransformer {
|
||||
std::shared_ptr<Graph> graph_;
|
||||
};
|
||||
|
||||
bool inlineConsecutiveIfs(Node* node) {
|
||||
static bool inlineConsecutiveIfs(Node* node) {
|
||||
if (node->kind() != prim::If || node->next()->kind() != prim::If) {
|
||||
return false;
|
||||
}
|
||||
@ -605,7 +605,7 @@ bool inlineConsecutiveIfs(Node* node) {
|
||||
// return 1
|
||||
// else:
|
||||
// return 2
|
||||
void inlineConsecutiveIfs(Block* block) {
|
||||
static void inlineConsecutiveIfs(Block* block) {
|
||||
for (auto it = block->nodes().begin(), end = block->nodes().end();
|
||||
it != end;) {
|
||||
for (Block* b : it->blocks()) {
|
||||
|
||||
Reference in New Issue
Block a user