Commit b04c7b8
Add random_seed for regular model parallel tests to ensure actual randomness in generating embeddings/inputs etc... (#3158)
Summary:
Pull Request resolved: #3158
Add random_seed as an optional parameter for gen_model_and_input method that can be used by any other testing methods.
Reviewed By: aporialiao
Differential Revision: D77742701
fbshipit-source-id: 752c7a9fd84436a5de862413f1851cf09a25d38e1 parent 140e979 commit b04c7b8
File tree
3 files changed
+27
-3
lines changed- torchrec/distributed
- test_utils
- tests
3 files changed
+27
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
103 | 104 | | |
104 | 105 | | |
105 | 106 | | |
106 | 107 | | |
107 | 108 | | |
| 109 | + | |
| 110 | + | |
108 | 111 | | |
109 | 112 | | |
110 | 113 | | |
| |||
751 | 754 | | |
752 | 755 | | |
753 | 756 | | |
| 757 | + | |
754 | 758 | | |
755 | | - | |
756 | | - | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
757 | 765 | | |
758 | 766 | | |
759 | 767 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
| 166 | + | |
166 | 167 | | |
167 | 168 | | |
168 | 169 | | |
| |||
180 | 181 | | |
181 | 182 | | |
182 | 183 | | |
| 184 | + | |
183 | 185 | | |
184 | 186 | | |
185 | 187 | | |
| |||
208 | 210 | | |
209 | 211 | | |
210 | 212 | | |
| 213 | + | |
211 | 214 | | |
212 | | - | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
213 | 219 | | |
214 | 220 | | |
215 | 221 | | |
| |||
252 | 258 | | |
253 | 259 | | |
254 | 260 | | |
| 261 | + | |
255 | 262 | | |
256 | 263 | | |
257 | 264 | | |
| |||
270 | 277 | | |
271 | 278 | | |
272 | 279 | | |
| 280 | + | |
273 | 281 | | |
274 | 282 | | |
275 | 283 | | |
| |||
287 | 295 | | |
288 | 296 | | |
289 | 297 | | |
| 298 | + | |
290 | 299 | | |
291 | 300 | | |
292 | 301 | | |
| |||
742 | 751 | | |
743 | 752 | | |
744 | 753 | | |
| 754 | + | |
745 | 755 | | |
746 | 756 | | |
747 | 757 | | |
| |||
770 | 780 | | |
771 | 781 | | |
772 | 782 | | |
| 783 | + | |
773 | 784 | | |
| 785 | + | |
774 | 786 | | |
775 | 787 | | |
776 | 788 | | |
| |||
818 | 830 | | |
819 | 831 | | |
820 | 832 | | |
| 833 | + | |
821 | 834 | | |
822 | 835 | | |
823 | 836 | | |
| |||
994 | 1007 | | |
995 | 1008 | | |
996 | 1009 | | |
| 1010 | + | |
997 | 1011 | | |
998 | 1012 | | |
999 | 1013 | | |
| |||
1027 | 1041 | | |
1028 | 1042 | | |
1029 | 1043 | | |
| 1044 | + | |
1030 | 1045 | | |
1031 | 1046 | | |
1032 | 1047 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
609 | 609 | | |
610 | 610 | | |
611 | 611 | | |
| 612 | + | |
612 | 613 | | |
613 | 614 | | |
614 | 615 | | |
| |||
0 commit comments