remove useless api
This commit is contained in:
parent
60c1dde35b
commit
2f1cea5e67
|
@ -531,13 +531,3 @@ Parameter操作函数
|
|||
|
||||
mindspore.ops.bartlett_window
|
||||
mindspore.ops.blackman_window
|
||||
|
||||
其他函数
|
||||
----------------
|
||||
|
||||
.. mscnplatformautosummary::
|
||||
:toctree: ops
|
||||
:nosignatures:
|
||||
:template: classtemplate.rst
|
||||
|
||||
mindspore.ops.core
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
mindspore.ops.core
|
||||
===================
|
||||
|
||||
.. py:function:: mindspore.ops.core(fn=None, **flags)
|
||||
|
||||
向函数添加标志的装饰器。
|
||||
默认情况下,函数标记为True,允许使用此装饰器为图添加标志。
|
||||
|
||||
参数:
|
||||
- **fn** (Function,可选) - 添加标志的函数。默认值:None。
|
||||
- **flags** (dict,可选) - 以下标志可以设置为core,表示这是核心函数或其他函数。默认值:None。
|
|
@ -531,13 +531,3 @@ Spectral Functions
|
|||
|
||||
mindspore.ops.bartlett_window
|
||||
mindspore.ops.blackman_window
|
||||
|
||||
Other Functions
|
||||
---------------
|
||||
|
||||
.. msplatformautosummary::
|
||||
:toctree: ops
|
||||
:nosignatures:
|
||||
:template: classtemplate.rst
|
||||
|
||||
mindspore.ops.core
|
||||
|
|
|
@ -21,7 +21,7 @@ Pre-defined combination of operators.
|
|||
|
||||
from __future__ import absolute_import
|
||||
from mindspore.ops.composite.base import GradOperation, _Grad, HyperMap, Map, MultitypeFuncGraph, add_flags, \
|
||||
core, tail, zip_operation, _Vmap, _TaylorOperation
|
||||
tail, zip_operation, _Vmap, _TaylorOperation
|
||||
from mindspore.ops.composite.env_ops import env_get
|
||||
from mindspore.ops.composite.clip_ops import clip_by_value, clip_by_global_norm
|
||||
from mindspore.ops.composite.multitype_ops.add_impl import hyper_add
|
||||
|
@ -35,7 +35,6 @@ from mindspore.ops.composite.vmap_ops import _VmapGeneralPreprocess, _VmapGenera
|
|||
|
||||
__all__ = [
|
||||
'env_get',
|
||||
'core',
|
||||
'add_flags',
|
||||
'tail',
|
||||
'Map',
|
||||
|
|
|
@ -19,7 +19,7 @@ import pytest
|
|||
|
||||
import mindspore.nn as nn
|
||||
import mindspore.context as context
|
||||
from mindspore.ops.composite import core
|
||||
from mindspore.ops.composite.base import core
|
||||
from mindspore.common.api import jit
|
||||
|
||||
from mindspore import Tensor
|
||||
|
@ -98,9 +98,6 @@ def test_remove_and_fv_2():
|
|||
# because of the limit of inference specialize system
|
||||
def test_conv2d_op_with_argi_1():
|
||||
class Conv2dNet(nn.Cell):
|
||||
def __init__(self):
|
||||
super(Conv2dNet, self).__init__()
|
||||
|
||||
def construct(self, op, x):
|
||||
return op(x)
|
||||
|
||||
|
@ -132,9 +129,6 @@ def test_conv2d_op_with_arg():
|
|||
return self.op(x, y)
|
||||
|
||||
class OpNet(nn.Cell):
|
||||
def __init__(self):
|
||||
super(OpNet, self).__init__()
|
||||
|
||||
def construct(self, op, x, y):
|
||||
return op(x, y)
|
||||
|
||||
|
@ -166,9 +160,6 @@ def test_conv2d_op_with_arg_same_input():
|
|||
return self.op(x, y)
|
||||
|
||||
class OpNet(nn.Cell):
|
||||
def __init__(self):
|
||||
super(OpNet, self).__init__()
|
||||
|
||||
def construct(self, op, x, y):
|
||||
return op(x, y)
|
||||
|
||||
|
@ -286,9 +277,6 @@ def test_nest_partial():
|
|||
# op and op args as network arguments
|
||||
def test_op_with_arg_as_input():
|
||||
class WithOpArgNet(nn.Cell):
|
||||
def __init__(self):
|
||||
super(WithOpArgNet, self).__init__()
|
||||
|
||||
def construct(self, op, x, y):
|
||||
return op(x, y)
|
||||
|
||||
|
@ -316,9 +304,6 @@ def test_op_with_arg_as_input():
|
|||
@pytest.mark.skip("poly in infer")
|
||||
def test_partial_as_arg():
|
||||
class PartialArgNet(nn.Cell):
|
||||
def __init__(self):
|
||||
super(PartialArgNet, self).__init__()
|
||||
|
||||
def construct(self, partial_op, y):
|
||||
return partial_op(y)
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ from mindspore import context
|
|||
from mindspore._extends.parse.standard_method import ms_len
|
||||
from mindspore.common.api import jit, jit_class
|
||||
from mindspore.common.tensor import Tensor
|
||||
from mindspore.ops.composite import core
|
||||
from mindspore.ops.composite.base import core
|
||||
from mindspore.ops.primitive import constexpr
|
||||
from mindspore.ops import functional as F
|
||||
from ..ut_filter import non_graph_engine
|
||||
|
|
Loading…
Reference in New Issue