提交 1766b7e5 authored 作者: Brandon T. Willard's avatar Brandon T. Willard 提交者: Brandon T. Willard

Remove unused undef and hist from theano.gof.utils

上级 c56d10f2
...@@ -144,11 +144,6 @@ def get_variable_trace_string(v): ...@@ -144,11 +144,6 @@ def get_variable_trace_string(v):
return sio.getvalue() return sio.getvalue()
# Object to mark that a parameter is undefined (useful in cases where
# None is a valid value with defined semantics)
undef = object()
class TestValueError(Exception): class TestValueError(Exception):
"""Base exception class for all test value errors.""" """Base exception class for all test value errors."""
...@@ -469,13 +464,6 @@ def flatten(a): ...@@ -469,13 +464,6 @@ def flatten(a):
return [a] return [a]
def hist(coll):
counts = {}
for elem in coll:
counts[elem] = counts.get(elem, 0) + 1
return counts
def remove(predicate, coll): def remove(predicate, coll):
""" """
Return those items of collection for which predicate(item) is true. Return those items of collection for which predicate(item) is true.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论