提交 28765bd6 authored 作者: Iban Harlouchet's avatar Iban Harlouchet 提交者: Iban Harlouchet

flake8 for theano/misc/check_duplicate_key.py

上级 6ed85182
from __future__ import print_function from __future__ import print_function
import six.moves.cPickle as pickle import six.moves.cPickle as pickle
import os, sys import os
import sys
import theano import theano
from six import iteritems, itervalues from six import iteritems, itervalues
...@@ -90,6 +92,6 @@ useless = total - uniq ...@@ -90,6 +92,6 @@ useless = total - uniq
print("mod.{cpp,cu} total:", total) print("mod.{cpp,cu} total:", total)
print("mod.{cpp,cu} uniq:", uniq) print("mod.{cpp,cu} uniq:", uniq)
print("mod.{cpp,cu} with more than 1 copy:", more_than_one) print("mod.{cpp,cu} with more than 1 copy:", more_than_one)
print("mod.{cpp,cu} useless:", useless, float(useless)/total*100, "%") print("mod.{cpp,cu} useless:", useless, float(useless) / total * 100, "%")
print("nb directory", len(dirs)) print("nb directory", len(dirs))
...@@ -184,7 +184,6 @@ whitelist_flake8 = [ ...@@ -184,7 +184,6 @@ whitelist_flake8 = [
"scan_module/scan_opt.py", "scan_module/scan_opt.py",
"scan_module/tests/test_scan.py", "scan_module/tests/test_scan.py",
"scan_module/tests/test_scan_opt.py", "scan_module/tests/test_scan_opt.py",
"misc/check_duplicate_key.py",
"misc/tests/test_may_share_memory.py", "misc/tests/test_may_share_memory.py",
"misc/tests/test_pycuda_theano_simple.py", "misc/tests/test_pycuda_theano_simple.py",
"misc/tests/test_gnumpy_utils.py", "misc/tests/test_gnumpy_utils.py",
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论