This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
Repositories
Datasets
Forum
实训
竞赛
大数据
应用
Register
Sign In
OpenI
/
MegEngine
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
31
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
feat(mge): do not export F.nn.linear
GitOrigin-RevId:
589964729d
release-1.1
Megvii Engine Team
4 years ago
parent
e42679b517
commit
164d9cdf1f
3 changed files
with
2 additions
and
3 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+0
-1
imperative/python/megengine/functional/nn.py
+1
-1
imperative/python/megengine/module/linear.py
+1
-1
imperative/python/megengine/module/quantized/linear.py
+ 0
- 1
imperative/python/megengine/functional/nn.py
View File
@@ -37,7 +37,6 @@ __all__ = [
"dropout",
"indexing_one_hot",
"leaky_relu",
"linear",
"local_conv2d",
"logsigmoid",
"logsumexp",
+ 1
- 1
imperative/python/megengine/module/linear.py
View File
@@ -7,7 +7,7 @@
# "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
import numpy as np
from ..functional import linear
from ..functional
.nn
import linear
from ..tensor import Parameter
from . import init
from .module import Module
+ 1
- 1
imperative/python/megengine/module/quantized/linear.py
View File
@@ -31,7 +31,7 @@ class Linear(QuantizedModule):
inp_scale = dtype.get_scale(inp.dtype)
w_scale = dtype.get_scale(self.weight.dtype)
bias_dtype = dtype.qint32(inp_scale * w_scale)
return F.linear(
return F.
nn.
linear(
inp,
self.weight,
None if self.bias is None else self.bias.astype(bias_dtype),
Write
Preview
Loading…
Cancel
Save