pt: avoid torch.tensor(constant) during forward #3421
Merged
Codecov / codecov/patch
succeeded
Mar 8, 2024 in 1s
66.66% of diff hit (within 100.00% threshold of 76.98%)
View this Pull Request on Codecov
66.66% of diff hit (within 100.00% threshold of 76.98%)
Annotations
Check warning on line 55 in deepmd/pt/loss/denoise.py
codecov / codecov/patch
deepmd/pt/loss/denoise.py#L55
Added line #L55 was not covered by tests
Check warning on line 69 in deepmd/pt/loss/denoise.py
codecov / codecov/patch
deepmd/pt/loss/denoise.py#L69
Added line #L69 was not covered by tests
Check warning on line 92 in deepmd/pt/loss/denoise.py
codecov / codecov/patch
deepmd/pt/loss/denoise.py#L92
Added line #L92 was not covered by tests
Loading