Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
4d4487c5
提交
4d4487c5
authored
4月 16, 2015
作者:
Arnaud Bergeron
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix inclusion of theano_mod_helper.h to not just happen for python3.
上级
e89c6e68
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
10 行增加
和
10 行删除
+10
-10
cuda_ndarray.cuh
theano/sandbox/cuda/cuda_ndarray.cuh
+10
-10
没有找到文件。
theano/sandbox/cuda/cuda_ndarray.cuh
浏览文件 @
4d4487c5
...
@@ -3,6 +3,8 @@
...
@@ -3,6 +3,8 @@
#include <algorithm>
#include <algorithm>
#include "theano_mod_helper.h"
// Defines for Python 2/3 compatibility.
// Defines for Python 2/3 compatibility.
#if PY_MAJOR_VERSION >= 3
#if PY_MAJOR_VERSION >= 3
// Py3k treats all ints as longs. This one is not caught by npy_3kcompat.h.
// Py3k treats all ints as longs. This one is not caught by npy_3kcompat.h.
...
@@ -10,8 +12,6 @@
...
@@ -10,8 +12,6 @@
#include "numpy/npy_3kcompat.h"
#include "numpy/npy_3kcompat.h"
#include "theano_mod_helper.h"
// Py3k strings are unicode, these mimic old functionality.
// Py3k strings are unicode, these mimic old functionality.
//
//
// NOTE: npy_3kcompat.h replaces PyString_X with PyBytes_X, which breaks
// NOTE: npy_3kcompat.h replaces PyString_X with PyBytes_X, which breaks
...
@@ -48,15 +48,15 @@
...
@@ -48,15 +48,15 @@
#include <cublas_v2.h>
#include <cublas_v2.h>
#ifdef _WIN32
#ifdef _WIN32
#ifdef _CUDA_NDARRAY_C
#
ifdef _CUDA_NDARRAY_C
#define DllExport __declspec( dllexport )
#
define DllExport __declspec( dllexport )
#else
#
else
#define DllExport __declspec( dllimport )
#
define DllExport __declspec( dllimport )
#endif
#
endif
#define ALWAYS_INLINE
#
define ALWAYS_INLINE
#else //else _WIN32
#else //else _WIN32
#define DllExport MOD_PUBLIC
#
define DllExport MOD_PUBLIC
#define ALWAYS_INLINE __attribute__((always_inline))
#
define ALWAYS_INLINE __attribute__((always_inline))
#endif
#endif
typedef
float
real
;
typedef
float
real
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论