Skip to content

Commit

Permalink
Ignore missing key flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Giuseppe5 committed Jul 6, 2023
1 parent b597336 commit 2855743
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,15 @@
import torch
import torch.nn.functional as F

from brevitas import config
from brevitas.core.function_wrapper.learned_round import LearnedRoundSte
from brevitas.graph.calibrate import DisableEnableQuantization
from brevitas.inject.enum import FloatToIntImplType
from brevitas.inject.enum import LearnedRoundImplType
from brevitas.nn.quant_layer import QuantWeightBiasInputOutputLayer as QuantWBIOL

config.IGNORE_MISSING_KEYS = True


class StopFwdException(Exception):
"""Used to throw and catch an exception to stop traversing the graph."""
Expand Down

0 comments on commit 2855743

Please sign in to comment.