File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 99# file 'LICENSE.txt', which is part of this source code package.
1010# ***************************************************************
1111
12- __version__ = '1.3.4.0 '
12+ __version__ = '1.3.4.1 '
1313from jittor_utils import lock
1414with lock .lock_scope ():
1515 ori_int = int
Original file line number Diff line number Diff line change @@ -240,9 +240,9 @@ void migrate_all_to_cpu() {
240240#ifdef HAS_CUDA
241241 for (auto vh : hold_vars) {
242242 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);
243+ // if (v->_outputs.size()) continue;
244+ if (v->allocator && v-> mem_ptr && !v->allocator ->is_cuda ())
245+ migrate_to_cpu (v, cpu_allocator);
246246 }
247247#endif
248248}
You can’t perform that action at this time.
0 commit comments