Skip to content

Commit

Permalink
Add one more there.
Browse files Browse the repository at this point in the history
  • Loading branch information
liuliu committed Oct 27, 2023
1 parent ba900a4 commit 38eca3e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/nnc/ccv_nnc_dynamic_graph.c
Original file line number Diff line number Diff line change
Expand Up @@ -789,6 +789,9 @@ static int _ccv_nnc_tensor_variable_is_only_output(ccv_nnc_dynamic_graph_t* cons
return 0;
if (other_bind->alias_ref) // If this is alias, use its original's destinations.
other_bind = (ccv_nnc_tensor_variable_graph_bind_t*)ccv_array_get(graph->binds, other_bind->alias_ref - 1);
// The original is in use and is it not a constant symbol.
if (other_bind->index >= 0 && other_bind->type != CCV_NNC_TENSOR_CONSTANT)
return 0;
if (other_bind->destinations && other_bind->destinations->rnum > 0)
return 0;
}
Expand Down

0 comments on commit 38eca3e

Please sign in to comment.