No flags found
Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.
e.g., #unittest #integration
#production #enterprise
#frontend #backend
Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.
e.g., #unittest #integration
#production #enterprise
#frontend #backend
280 | 280 | # Handle single values |
|
281 | 281 | if isinstance(self.train_config.prec_init, (int, float)): |
|
282 | 282 | self._prec_init = self.train_config.prec_init * torch.ones(self.m) |
|
283 | + | if isinstance(self.train_config.prec_init, np.ndarray): |
|
284 | + | self._prec_init = torch.from_numpy(self.train_config.prec_init) |
|
285 | + | if isinstance(self.train_config.prec_init, list): |
|
286 | + | self._prec_init = torch.from_numpy(np.array(self.train_config.prec_init)) |
|
283 | 287 | if self._prec_init.shape[0] != self.m: |
|
284 | 288 | raise ValueError(f"prec_init must have shape {self.m}.") |
|
285 | 289 |
Files | Coverage |
---|---|
apply | 100.00% |
lf | 100.00% |
model | 0.76% 97.34% |
__init__.py | 100.00% |
analysis.py | 100.00% |
utils.py | 100.00% |
Folder Totals (6 files) | 98.43% |
Project Totals (68 files) | 97.35% |
#1616
999157e
6a72717
#1616
b145093
ed77718