提交 f92eb416 authored 作者: Amjad Almahairi's avatar Amjad Almahairi

removing extra warning and rephrasing comments

上级 0cf4c6aa
...@@ -4059,9 +4059,6 @@ class Tile(Op): ...@@ -4059,9 +4059,6 @@ class Tile(Op):
<http://docs.scipy.org/doc/numpy/reference/generated/numpy.tile.html>`_ <http://docs.scipy.org/doc/numpy/reference/generated/numpy.tile.html>`_
""" """
def __init__(self, ndim): def __init__(self, ndim):
warnings.warn((
"Tile op is deprecated, use tile function instead."),
stacklevel=3)
self.ndim = ndim self.ndim = ndim
def __eq__(self, other): def __eq__(self, other):
......
...@@ -6879,8 +6879,8 @@ class TestInferShape(utt.InferShapeTester): ...@@ -6879,8 +6879,8 @@ class TestInferShape(utt.InferShapeTester):
# [Reshape(ndim)(adtens4, aivec)], # [Reshape(ndim)(adtens4, aivec)],
# [adtens4_val, [1, 3, 10, 4]], Reshape) # [adtens4_val, [1, 3, 10, 4]], Reshape)
# Tile op is deprecated and tile function no more uses it # Tile op is deprecated so the tile function doesn't use it
# we'll test the op directly # anymore, we'll test here the op directly
advec = dvector() advec = dvector()
advec_val = rand(5) advec_val = rand(5)
aivec_val = [3] aivec_val = [3]
......
...@@ -3420,8 +3420,8 @@ def test_local_mul_specialize(): ...@@ -3420,8 +3420,8 @@ def test_local_mul_specialize():
class T_Tile(unittest.TestCase): class T_Tile(unittest.TestCase):
def test_local_useless_tile(self): def test_local_useless_tile(self):
# Tile op is deprecated and tile function no more uses it # Tile op is deprecated so the tile function doesn't use it
# we'll test the op directly # anymore, we'll test here the op directly
v = T.vector() v = T.vector()
m = T.matrix() m = T.matrix()
mode = None mode = None
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论