提交 6cd156a5 authored 作者: Ian Goodfellow's avatar Ian Goodfellow

removed prints and comments

上级 bc582508
...@@ -1787,8 +1787,6 @@ elemwise.as_tensor_variable = as_tensor_variable ...@@ -1787,8 +1787,6 @@ elemwise.as_tensor_variable = as_tensor_variable
elemwise.TensorType = TensorType elemwise.TensorType = TensorType
elemwise.TensorVariable = TensorVariable elemwise.TensorVariable = TensorVariable
elemwise.TensorConstant = TensorConstant elemwise.TensorConstant = TensorConstant
#elemwise.TensorValue = TensorValue
######################### #########################
# Utilities # Utilities
......
...@@ -215,10 +215,7 @@ def makeTester(name, op, expected, checks=None, good=None, bad_build=None, ...@@ -215,10 +215,7 @@ def makeTester(name, op, expected, checks=None, good=None, bad_build=None,
[ shape_elem == 1 for shape_elem in input.shape] [ shape_elem == 1 for shape_elem in input.shape]
)() for input in inputs] )() for input in inputs]
try: try:
#node = self.op.make_node(*inputrs)
node = safe_make_node(self.op, *inputrs) node = safe_make_node(self.op, *inputrs)
print 'node: '
print node
except Exception, exc: except Exception, exc:
err_msg = ("Test %s::%s: Error occurred while" err_msg = ("Test %s::%s: Error occurred while"
" making a node with inputs %s") % ( " making a node with inputs %s") % (
...@@ -228,13 +225,6 @@ def makeTester(name, op, expected, checks=None, good=None, bad_build=None, ...@@ -228,13 +225,6 @@ def makeTester(name, op, expected, checks=None, good=None, bad_build=None,
try: try:
f = inplace_func(inputrs, node.outputs, mode=mode) f = inplace_func(inputrs, node.outputs, mode=mode)
try:
for i, output in f.maker.env.outputs:
print 'output',i
debugprint(output)
except:
print 'only one output?'
debugprint(f.maker.env.outputs)
except Exception, exc: except Exception, exc:
err_msg = ("Test %s::%s: Error occurred while" err_msg = ("Test %s::%s: Error occurred while"
" trying to make a Function") % (self.op, testname) " trying to make a Function") % (self.op, testname)
...@@ -344,7 +334,6 @@ def makeTester(name, op, expected, checks=None, good=None, bad_build=None, ...@@ -344,7 +334,6 @@ def makeTester(name, op, expected, checks=None, good=None, bad_build=None,
try: try:
for testname, inputs in self.grad.items(): for testname, inputs in self.grad.items():
inputs = [copy(input) for input in inputs] inputs = [copy(input) for input in inputs]
#inputrs = [shared(input) for input in inputs]
try: try:
utt.verify_grad(self.op, inputs, utt.verify_grad(self.op, inputs,
mode=self.mode, mode=self.mode,
......
...@@ -4,8 +4,6 @@ from theano import function ...@@ -4,8 +4,6 @@ from theano import function
from theano.tensor.basic import (_convert_to_int32, _convert_to_int8, _convert_to_int16, from theano.tensor.basic import (_convert_to_int32, _convert_to_int8, _convert_to_int16,
_convert_to_int64, _convert_to_float32, _convert_to_float64) _convert_to_int64, _convert_to_float32, _convert_to_float64)
from theano.tensor import * from theano.tensor import *
from theano import shared
value = shared
class test_casting(unittest.TestCase): class test_casting(unittest.TestCase):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论