Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
reyoung committed Sep 29, 2017
1 parent 762a99c commit 6164b89
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 50 deletions.
46 changes: 0 additions & 46 deletions python/paddle/v2/framework/tests/test_gradient_checker.py

This file was deleted.

4 changes: 2 additions & 2 deletions python/paddle/v2/framework/tests/test_net.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def fc(X, W, Y):
class TestNet(unittest.TestCase):
def test_net_all(self):
net = core.Net.create()
op1 = Operator("add", X="X", Y="Y", Out="Out")
op1 = Operator("sum", X=["X", "Y"], Out="Out")
net.append_op(op1)

net2 = core.Net.create()
Expand All @@ -26,7 +26,7 @@ def test_net_all(self):

expected = '''
Op(plain_net), inputs:{all[W, X, Y]}, outputs:{all[Out, fc.out, pre_activation]}.
Op(add), inputs:{X[X], Y[Y]}, outputs:{Out[Out]}.
Op(sum), inputs:{X[X, Y]}, outputs:{Out[Out]}.
Op(plain_net), inputs:{all[W, X]}, outputs:{all[fc.out, pre_activation]}.
Op(plain_net), inputs:{all[W, X]}, outputs:{all[fc.out, pre_activation]}.
Op(mul), inputs:{X[X], Y[W]}, outputs:{Out[pre_activation]}.
Expand Down
4 changes: 2 additions & 2 deletions python/paddle/v2/framework/tests/test_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,10 +193,10 @@ def __add_attr__(name, type):

class TestOpCreations(unittest.TestCase):
def test_all(self):
add_op = op.Operator("add", X="a", Y="b", Out="z")
add_op = op.Operator("sum", X=["a", "b"], Out="z")
self.assertIsNotNone(add_op)
# Invoke C++ DebugString()
self.assertEqual('Op(add), inputs:{X[a], Y[b]}, outputs:{Out[z]}.',
self.assertEqual('Op(sum), inputs:{X[a, b]}, outputs:{Out[z]}.',
str(add_op))


Expand Down

0 comments on commit 6164b89

Please sign in to comment.