提交 366bedec authored 作者: --global's avatar --global

Alter new tests to prevent very large absolute values

上级 b024fec0
...@@ -711,7 +711,7 @@ class T_Scan(unittest.TestCase): ...@@ -711,7 +711,7 @@ class T_Scan(unittest.TestCase):
def inner_fct(mitsot_m2, mitsot_m1, sitsot): def inner_fct(mitsot_m2, mitsot_m1, sitsot):
total = mitsot_m2 + mitsot_m1 + sitsot total = mitsot_m2 + mitsot_m1 + sitsot
output = total ** 2 output = total ** 1.05
return output, output return output, output
inputs = [tensor.matrix(), tensor.vector()] inputs = [tensor.matrix(), tensor.vector()]
...@@ -751,7 +751,7 @@ class T_Scan(unittest.TestCase): ...@@ -751,7 +751,7 @@ class T_Scan(unittest.TestCase):
def inner_fct(mitsot_m2, sitsot): def inner_fct(mitsot_m2, sitsot):
total = mitsot_m2 + sitsot total = mitsot_m2 + sitsot
output = total ** 2 output = total ** 1.05
return output, output return output, output
def get_sum_of_grad(input0, input1): def get_sum_of_grad(input0, input1):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论