提交 cbc0a102 authored 作者: Michael Osthege's avatar Michael Osthege 提交者: Brandon T. Willard

Stop supporting 16/32/64 as aliases for float16/float32/float64

This way the "convert" kwarg can be removed from the signature of the EnumStr param
上级 6aa3ba4a
......@@ -33,17 +33,6 @@ _logger = logging.getLogger("theano.configdefaults")
config = TheanoConfigParser()
def floatX_convert(s):
if s == "32":
return "float32"
elif s == "64":
return "float64"
elif s == "16":
return "float16"
else:
return s
AddConfigVar(
"floatX",
"Default floating-point precision for python casts.\n"
......@@ -53,7 +42,6 @@ AddConfigVar(
"float64",
"float32",
"float16",
convert=floatX_convert,
),
# TODO: see gh-4466 for how to remove it.
in_c_key=True,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论