@@ -59,7 +59,7 @@ export class NSNet2 {
59
59
{ bias : bias194 , recurrentBias : recurrentBias194 , initialHiddenState : initialState92 , returnSequence : true } ) ;
60
60
// Use reshape to implement squeeze(gru93, {axes: [1]});
61
61
const isShapeMethod = typeof gru93 . shape === 'function' ;
62
- const squeeze95Shape = isShapeMethod ? gru93 . shape ( ) : gru93 . shape ;
62
+ const squeeze95Shape = isShapeMethod ? gru93 . shape ( ) : [ ... gru93 . shape ] ;
63
63
squeeze95Shape . splice ( 1 , 1 ) ;
64
64
const squeeze95 = this . builder_ . reshape ( gru93 , squeeze95Shape ) ;
65
65
const initialState155 = this . builder_ . input ( 'initialState155' , initialStateDesc ) ;
@@ -90,7 +90,7 @@ export class NSNet2 {
90
90
const [ gru157 , gru156 ] = this . builder_ . gru ( squeeze95 , weight212 , recurrentWeight213 , frames , this . hiddenSize ,
91
91
{ bias : bias214 , recurrentBias : recurrentBias214 , initialHiddenState : initialState155 , returnSequence : true } ) ;
92
92
// Use reshape to implement squeeze(gru156, {axes: [1]});
93
- const squeeze158Shape = isShapeMethod ? gru156 . shape ( ) : gru156 . shape ;
93
+ const squeeze158Shape = isShapeMethod ? gru156 . shape ( ) : [ ... gru156 . shape ] ;
94
94
squeeze158Shape . splice ( 1 , 1 ) ;
95
95
const squeeze158 = this . builder_ . reshape ( gru156 , squeeze158Shape ) ;
96
96
const transpose159 = this . builder_ . transpose ( squeeze158 , { permutation : [ 1 , 0 , 2 ] } ) ;
0 commit comments