Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
ca7fec7c
提交
ca7fec7c
authored
6月 09, 2011
作者:
Olivier Delalleau
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Changed the default value of cast_policy to custom instead of numpy+floatX
上级
8598dab6
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
5 行增加
和
4 行删除
+5
-4
config.txt
doc/library/config.txt
+4
-3
configdefaults.py
theano/configdefaults.py
+1
-1
没有找到文件。
doc/library/config.txt
浏览文件 @
ca7fec7c
...
...
@@ -156,13 +156,13 @@ import theano and print the config variable, as in:
String value: either 'numpy+floatX' or 'custom'
Default: '
numpy+floatX
'
Default: '
custom
'
This specifies how data types are implicitly figured out in Theano, e.g. for
constants or in the results of arithmetic operations. The 'custom' value
corresponds to a set of custom rules originally used in
Theano (which can be partially customized, see e.g. the in-code help of
``tensor.NumpyAutocaster``), and
is now deprecated
.
``tensor.NumpyAutocaster``), and
will be deprecated in the future
.
The 'numpy+floatX' setting attempts to mimic the numpy casting rules,
although it prefers to use float32 numbers instead of float64 when
``config.floatX`` is set to 'float32' and the user uses data that is not
...
...
@@ -176,7 +176,8 @@ import theano and print the config variable, as in:
from upcasting the array's type unless it is of a fundamentally
different type. Theano does not attempt to do the same at this point,
so you should be careful that scalars may upcast arrays when they
would not when using numpy.
would not when using numpy. This behavior should change in the near
future.
.. attribute:: int_division
...
...
theano/configdefaults.py
浏览文件 @
ca7fec7c
...
...
@@ -17,7 +17,7 @@ AddConfigVar('floatX',
AddConfigVar
(
'cast_policy'
,
"Rules for implicit type casting"
,
EnumStr
(
'
numpy+floatX'
,
'custom
'
,
EnumStr
(
'
custom'
,
'numpy+floatX
'
,
# The 'numpy' policy was originally planned to provide a smooth
# transition from numpy. It was meant to behave the same as
# numpy+floatX, but keeping float64 when numpy would. However
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论