@@ -185,35 +185,6 @@ describe('normalization', () => {
185
185
it ( 'should match json def' , ( ) => {
186
186
node . op = 'LogSoftmax' ;
187
187
188
- expect ( validateParam ( node , normalization . json ) ) . toBeTruthy ( ) ;
189
- } ) ;
190
- } ) ;
191
- describe ( 'SparseToDense' , ( ) => {
192
- it ( 'should call tfOps.sparseToDense' , ( ) => {
193
- node . op = 'SparseToDense' ;
194
- node . inputParams . sparseIndices = createTensorAttr ( 0 ) ;
195
- node . inputParams . outputShape = createNumericArrayAttrFromIndex ( 1 ) ;
196
- node . inputParams . sparseValues = createTensorAttr ( 2 ) ;
197
- node . inputParams . defaultValue = createTensorAttr ( 3 ) ;
198
- node . inputNames = [ 'input1' , 'input2' , 'input3' , 'input4' ] ;
199
- const input2 = [ tfOps . tensor1d ( [ 1 ] , 'int32' ) ] ;
200
- const input3 = [ tfOps . scalar ( 2 ) ] ;
201
- const input4 = [ tfOps . scalar ( 3 ) ] ;
202
- spyOps . sparseToDense . and . returnValue ( { } ) ;
203
- executeOp ( node , { input1, input2, input3, input4} , context ,
204
- spyOpsAsTfOps ) ;
205
-
206
- expect ( spyOps . sparseToDense )
207
- . toHaveBeenCalledWith ( input1 [ 0 ] , [ 1 ] , input3 [ 0 ] , input4 [ 0 ] ) ;
208
- } ) ;
209
- it ( 'should match json def' , ( ) => {
210
- node . op = 'SparseToDense' ;
211
- delete node . inputParams . x ;
212
- node . inputParams . sparseIndices = createTensorAttr ( 0 ) ;
213
- node . inputParams . outputShape = createNumericArrayAttrFromIndex ( 1 ) ;
214
- node . inputParams . sparseValues = createTensorAttr ( 2 ) ;
215
- node . inputParams . defaultValue = createTensorAttr ( 3 ) ;
216
-
217
188
expect ( validateParam ( node , normalization . json ) ) . toBeTruthy ( ) ;
218
189
} ) ;
219
190
} ) ;
0 commit comments