Skip to content

Commit

Permalink
upgrade pyre version in fbcode/vision - batch 2
Browse files Browse the repository at this point in the history
Differential Revision: D55395614

fbshipit-source-id: 71677892b5d6f219f6df25b4efb51fb0f6b1441b
  • Loading branch information
generatedunixname89002005307016 authored and facebook-github-bot committed Mar 27, 2024
1 parent 18ec867 commit 29afb2f
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions fvcore/nn/print_model_statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,13 @@
import torch
from torch import nn

# pyre-fixme[21]: Could not find module `fvcore.nn.activation_count`.
from .activation_count import ActivationCountAnalysis

# pyre-fixme[21]: Could not find module `fvcore.nn.flop_count`.
from .flop_count import FlopCountAnalysis

# pyre-fixme[21]: Could not find module `fvcore.nn.parameter_count`.
from .parameter_count import parameter_count


Expand Down
2 changes: 2 additions & 0 deletions tests/test_activation_count.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

import torch
import torch.nn as nn

# pyre-fixme[21]: Could not find module `fvcore.nn.activation_count`.
from fvcore.nn.activation_count import activation_count, ActivationCountAnalysis
from fvcore.nn.jit_handles import Handle
from numpy import prod
Expand Down
2 changes: 2 additions & 0 deletions tests/test_flop_count.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

import torch
import torch.nn as nn

# pyre-fixme[21]: Could not find module `fvcore.nn.flop_count`.
from fvcore.nn.flop_count import _DEFAULT_SUPPORTED_OPS, flop_count, FlopCountAnalysis
from fvcore.nn.jit_handles import Handle
from torch.autograd.function import Function
Expand Down
2 changes: 2 additions & 0 deletions tests/test_jit_model_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

import torch
import torch.nn as nn

# pyre-fixme[21]: Could not find module `fvcore.nn.flop_count`.
from fvcore.nn.flop_count import FlopCountAnalysis
from fvcore.nn.jit_analysis import JitModelAnalysis
from fvcore.nn.jit_handles import addmm_flop_jit, conv_flop_jit, Handle, linear_flop_jit
Expand Down
1 change: 1 addition & 0 deletions tests/test_param_count.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import unittest

# pyre-fixme[21]: Could not find module `fvcore.nn.parameter_count`.
from fvcore.nn.parameter_count import parameter_count, parameter_count_table
from torch import nn

Expand Down

0 comments on commit 29afb2f

Please sign in to comment.