Browse Source

fix(mge/functional): del graph in __init__

GitOrigin-RevId: 4a62f39546
release-1.1
Megvii Engine Team 4 years ago
parent
commit
5ee1a1c45c
2 changed files with 1 additions and 2 deletions
  1. +1
    -1
      imperative/python/megengine/functional/__init__.py
  2. +0
    -1
      imperative/python/megengine/functional/nn.py

+ 1
- 1
imperative/python/megengine/functional/__init__.py View File

@@ -17,4 +17,4 @@ from . import distributed # isort:skip

# delete namespace
# pylint: disable=undefined-variable
del elemwise, graph, loss, math, nn, quantized, tensor, utils # type: ignore[name-defined]
del elemwise, math, tensor, utils # type: ignore[name-defined]

+ 0
- 1
imperative/python/megengine/functional/nn.py View File

@@ -1024,7 +1024,6 @@ def matmul(
format=format,
)

inp1, inp2 = utils.convert_inputs(inp1, inp2)
(result,) = apply(op, inp1, inp2)
if shp is not None:
result = result.reshape(shp)


Loading…
Cancel
Save