Stas Bekman
e71f32c0ef
[testing] fix ambiguous test ( #6898 )
...
Since `generate()` does:
```
num_beams = num_beams if num_beams is not None else self.config.num_beams
```
This test fails if `model.config.num_beams > 1` (which is the case in the model I'm porting).
This fix makes the test setup unambiguous by passing an explicit `num_beams=1` to `generate()`.
Thanks.
2020-09-02 16:18:17 +02:00
..
2020-05-07 13:48:44 -04:00
2020-01-06 15:11:12 +01:00
2020-07-31 04:34:46 -04:00
2020-08-24 11:03:01 -04:00
2020-08-24 11:03:01 -04:00
2020-08-24 11:03:01 -04:00
2020-08-27 20:01:17 -04:00
2020-07-01 10:31:17 -04:00
2020-03-05 17:16:57 -05:00
2020-08-31 08:25:00 -04:00
2020-07-01 10:31:17 -04:00
2020-08-24 11:03:01 -04:00
2020-07-31 04:44:23 -04:00
2020-08-26 11:10:36 -04:00
2020-01-06 15:11:12 +01:00
2020-08-26 17:20:22 +02:00
2020-08-24 11:03:01 -04:00
2020-08-28 11:15:17 -04:00
2020-08-26 17:20:22 +02:00
2020-08-26 17:20:22 +02:00
2020-09-02 16:18:17 +02:00
2020-08-26 17:20:22 +02:00
2020-08-26 17:20:22 +02:00
2020-08-26 17:20:22 +02:00
2020-08-26 17:20:22 +02:00
2020-09-01 12:38:25 +02:00
2020-08-26 17:20:22 +02:00
2020-09-01 12:38:25 +02:00
2020-08-26 17:20:22 +02:00
2020-08-31 16:10:43 -04:00
2020-08-24 11:03:01 -04:00
2020-08-26 17:20:22 +02:00
2020-09-01 12:38:25 +02:00
2020-08-29 17:43:32 -04:00
2020-08-26 17:20:22 +02:00
2020-08-26 17:20:22 +02:00
2020-09-01 12:38:25 +02:00
2020-08-24 11:03:01 -04:00
2020-08-24 11:03:01 -04:00
2020-08-24 11:03:01 -04:00
2020-08-26 17:20:22 +02:00
2020-08-26 23:16:06 +02:00
2020-08-26 17:20:22 +02:00
2020-08-26 17:20:22 +02:00
2020-08-26 17:20:22 +02:00
2020-08-26 17:20:22 +02:00
2020-09-01 12:38:25 +02:00
2020-08-26 14:55:41 -04:00
2020-08-24 11:03:01 -04:00
2020-09-01 12:38:25 +02:00
2020-08-26 17:20:22 +02:00
2020-09-01 12:38:25 +02:00
2020-08-26 17:20:22 +02:00
2020-08-24 11:03:01 -04:00
2020-08-26 17:20:22 +02:00
2020-08-26 17:20:22 +02:00
2020-08-26 17:20:22 +02:00
2020-08-24 11:03:01 -04:00
2020-08-26 17:20:22 +02:00
2020-08-26 17:20:22 +02:00
2020-08-17 09:04:35 -04:00
2020-08-24 11:03:01 -04:00
2020-08-27 18:31:51 +02:00
2020-09-02 07:34:35 -04:00
2020-06-15 17:12:51 -04:00
2020-07-01 10:31:17 -04:00
2020-08-30 18:19:57 +08:00
2020-08-17 12:00:23 +08:00
2020-08-06 18:52:28 +08:00
2020-08-28 11:15:17 -04:00
2020-06-15 17:12:51 -04:00
2020-07-01 10:31:17 -04:00
2020-07-07 16:35:12 +02:00
2020-08-28 15:02:25 -04:00
2020-06-15 17:12:51 -04:00
2020-08-11 15:57:07 -04:00
2020-08-28 11:15:17 -04:00
2020-06-15 17:12:51 -04:00
2020-08-28 11:15:17 -04:00
2020-08-26 17:20:22 +02:00
2020-08-28 11:15:17 -04:00
2020-08-30 18:19:57 +08:00
2020-08-28 09:56:17 -04:00
2020-08-12 08:00:56 -04:00
2020-07-01 10:31:17 -04:00
2020-07-01 10:31:17 -04:00
2020-07-01 10:31:17 -04:00
2020-08-20 11:13:50 -04:00
2020-08-27 12:22:18 -04:00