diff --git a/imperative/python/megengine/quantization/fake_quant.py b/imperative/python/megengine/quantization/fake_quant.py index ae6c09123b12733c0e6757a3da0411ef35ec9e6a..c1469d33fbd86fe8e4bf0c388270cb4b4c318d00 100644 --- a/imperative/python/megengine/quantization/fake_quant.py +++ b/imperative/python/megengine/quantization/fake_quant.py @@ -61,14 +61,14 @@ class _FakeQuantize(Module): def fake_quant_forward(self, inp, qparams: QParams = None): raise NotImplementedError - def normal_foward(self, inp, qparams: QParams = None): + def normal_forward(self, inp, qparams: QParams = None): return inp def forward(self, inp, qparams: QParams = None): if self.enabled: return self.fake_quant_forward(inp, qparams=qparams) else: - return self.normal_foward(inp, qparams=qparams) + return self.normal_forward(inp, qparams=qparams) class TQT(_FakeQuantize, QParamsModuleMixin): diff --git a/src/core/test/graph/eager_eval.cpp b/src/core/test/graph/eager_eval.cpp index 2bcfcf1eec7d444d8202ab0dfe66e3d7f2aa9c32..3ac124d99e984875c8a2fdd86bdb94baf9c5e08c 100644 --- a/src/core/test/graph/eager_eval.cpp +++ b/src/core/test/graph/eager_eval.cpp @@ -495,7 +495,7 @@ TEST_F(TestGraphEagerReeval, MemoryAlloc) { // | +--> 8 -> 8 // |-----> x1(fwd) -> 8 -| // total usage : 63 + (16 after the first iteration) - // x might has iteration i's memory, but x0/x1 foward i-1's memory + // x might has iteration i's memory, but x0/x1 forward i-1's memory size_t length = reserve / (sizeof(dt_int32) * 5 * 16); auto host_x = std::make_shared(cn, dtype::Int32()); HostTensorND host_val;