提交 31f798f9 authored 作者: Frederic Bastien's avatar Frederic Bastien

Python3 compat fix

上级 5fbdf91c
from __future__ import absolute_import, print_function, division from __future__ import absolute_import, print_function, division
import string
import numpy as np import numpy as np
import theano import theano
...@@ -247,8 +246,8 @@ def sc_complex_dot_batched(bx_gpu, by_gpu, bc_gpu, transa='N', transb='N', ...@@ -247,8 +246,8 @@ def sc_complex_dot_batched(bx_gpu, by_gpu, bc_gpu, transa='N', transb='N',
alpha = np.complex64(1.0) alpha = np.complex64(1.0)
beta = np.complex64(0.0) beta = np.complex64(0.0)
transa = string.lower(transa) transa = transa.lower()
transb = string.lower(transb) transb = transb.lower()
if transb in ['t', 'c']: if transb in ['t', 'c']:
N, m, k = by_shape N, m, k = by_shape
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论