()
| 465 | |
| 466 | it('tensor4d() from number[][][][], but shape does not match', () => { |
| 467 | const f = () => { |
| 468 | // Actual shape is [2, 2, 1, 1]. |
| 469 | tf.tensor4d([[[[1]], [[2]]], [[[4]], [[5]]]], [2, 1, 2, 1]); |
| 470 | }; |
| 471 | expect(f).toThrowError(); |
| 472 | }); |
| 473 |
no test coverage detected