提交 9ca2180e authored 作者: David Warde-Farley's avatar David Warde-Farley

Removed method signature argument unpacking.

This is not present in Python 3.x and generates warnings on later versions of Python 2.x, and should be avoided in new code.
上级 558854c4
...@@ -1491,8 +1491,10 @@ class Dot(gof.op.Op): ...@@ -1491,8 +1491,10 @@ class Dot(gof.op.Op):
return gof.Apply(self, [x, y], [tensor.tensor(dtype=dtype_out, return gof.Apply(self, [x, y], [tensor.tensor(dtype=dtype_out,
broadcastable=(False, False))]) broadcastable=(False, False))])
def perform(self, node, (x, y), (out, )): def perform(self, node, inputs, out):
x, y = inputs
out = out[0]
x_is_sparse = _is_sparse(x) x_is_sparse = _is_sparse(x)
y_is_sparse = _is_sparse(y) y_is_sparse = _is_sparse(y)
...@@ -1708,8 +1710,10 @@ class UsmmCscDense(gof.Op): ...@@ -1708,8 +1710,10 @@ class UsmmCscDense(gof.Op):
def c_header_dirs(self): def c_header_dirs(self):
return blas.ldflags(libs=False, include_dir=True) return blas.ldflags(libs=False, include_dir=True)
def c_code(self, node, name, (alpha, x_val, x_ind, x_ptr, x_nrows, y, z), (zn,), sub): def c_code(self, node, name, inputs, outputs, sub):
alpha, x_val, x_ind, x_ptr, x_nrows, y, z = inputs
zn = outputs[0]
if node.inputs[1].type.dtype in ('complex64', 'complex128'): if node.inputs[1].type.dtype in ('complex64', 'complex128'):
raise NotImplementedError('Complex types are not supported for x_val') raise NotImplementedError('Complex types are not supported for x_val')
if node.inputs[5].type.dtype in ('complex64', 'complex128'): if node.inputs[5].type.dtype in ('complex64', 'complex128'):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论