We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16bffae commit f815a8cCopy full SHA for f815a8c
python/jittor/__init__.py
@@ -9,7 +9,7 @@
9
# file 'LICENSE.txt', which is part of this source code package.
10
# ***************************************************************
11
12
-__version__ = '1.3.4.0'
+__version__ = '1.3.4.1'
13
from jittor_utils import lock
14
with lock.lock_scope():
15
ori_int = int
python/jittor/src/var_holder.cc
@@ -240,9 +240,9 @@ void migrate_all_to_cpu() {
240
#ifdef HAS_CUDA
241
for (auto vh : hold_vars) {
242
auto v = vh->var;
243
- if (v->_outputs.size()) continue;
244
- if (v->allocator && !v->allocator->is_cuda())
245
- migrate_to_gpu(v, cpu_allocator);
+ // if (v->_outputs.size()) continue;
+ if (v->allocator && v->mem_ptr && !v->allocator->is_cuda())
+ migrate_to_cpu(v, cpu_allocator);
246
}
247
#endif
248
0 commit comments