File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -510,7 +510,7 @@ inline void Executor::_schedule_unsync(
510
510
) const {
511
511
512
512
// module node need another initialization
513
- if (node->_module != nullptr && !node->is_spawned ()) {
513
+ if (node->_module != nullptr && !node->_module -> empty () && !node-> is_spawned ()) {
514
514
_init_module_node_unsync (node, stack);
515
515
}
516
516
@@ -526,7 +526,7 @@ inline void Executor::_schedule_unsync(
526
526
// here we guarantee to run by a thread so no need to cache the
527
527
// size from nodes
528
528
for (auto node : nodes) {
529
- if (node->_module != nullptr && !node->is_spawned ()) {
529
+ if (node->_module != nullptr && !node->_module -> empty () && !node-> is_spawned ()) {
530
530
_init_module_node_unsync (node, stack);
531
531
}
532
532
stack.push (node);
@@ -541,7 +541,7 @@ inline void Executor::_schedule(Node* node, bool bypass) {
541
541
assert (_workers.size () != 0 );
542
542
543
543
// module node need another initialization
544
- if (node->_module != nullptr && !node->is_spawned ()) {
544
+ if (node->_module != nullptr && !node->_module -> empty () && !node-> is_spawned ()) {
545
545
_init_module_node (node);
546
546
}
547
547
@@ -582,7 +582,7 @@ inline void Executor::_schedule(PassiveVector<Node*>& nodes) {
582
582
}
583
583
584
584
for (auto node : nodes) {
585
- if (node->_module != nullptr && !node->is_spawned ()) {
585
+ if (node->_module != nullptr && !node->_module -> empty () && !node-> is_spawned ()) {
586
586
_init_module_node (node);
587
587
}
588
588
}
You can’t perform that action at this time.
0 commit comments