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:
cyy
2023-05-18 03:49:40 +00:00
committed by PyTorch MergeBot
parent 900ca4df59
commit c2f28d1c1d
137 changed files with 572 additions and 773 deletions

View File

@ -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()) {