File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -1361,6 +1361,15 @@ void Compiler::OutputDebugInfo(NnetComputation *computation) const {
1361
1361
NnetComputation::MatrixDebugInfo &debug_info =
1362
1362
computation->matrix_debug_info [value_matrix];
1363
1363
debug_info.is_deriv = false ;
1364
+ if (!debug_info.cindexes .empty ()) {
1365
+ // This can happen if we created an alias for a node using a
1366
+ // dim-range-node that covers all the dimensions (would satisfy
1367
+ // IsWholeMatrix() above while not being a unique matrix). We sometimes
1368
+ // do that to work around compiler constraints when creating expressions
1369
+ // that have the same quantity with more than one scaling value within the
1370
+ // same expression (like for computing deltas).
1371
+ continue ;
1372
+ }
1364
1373
AppendCindexes (step_info.node_index , step_info.output_indexes ,
1365
1374
&debug_info.cindexes );
1366
1375
if (deriv_matrix != 0 ) {
You can’t perform that action at this time.
0 commit comments