Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pt: refact training code #3359

Merged
merged 47 commits into from
Mar 1, 2024

Move label requirement to loss func

fdca653
Select commit
Loading
Failed to load commit list.
Merged

pt: refact training code #3359

Move label requirement to loss func
fdca653
Select commit
Loading
Failed to load commit list.
Codecov / codecov/patch succeeded Feb 29, 2024 in 1s

3.23% of diff hit (within 100.00% threshold of 75.99%)

View this Pull Request on Codecov

3.23% of diff hit (within 100.00% threshold of 75.99%)

Annotations

Check warning on line 92 in deepmd/dpmodel/descriptor/make_base_descriptor.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

deepmd/dpmodel/descriptor/make_base_descriptor.py#L92

Added line #L92 was not covered by tests

Check warning on line 248 in deepmd/dpmodel/descriptor/se_e2_a.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

deepmd/dpmodel/descriptor/se_e2_a.py#L248

Added line #L248 was not covered by tests

Check warning on line 208 in deepmd/dpmodel/descriptor/se_r.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

deepmd/dpmodel/descriptor/se_r.py#L208

Added line #L208 was not covered by tests

Check warning on line 109 in deepmd/pt/entrypoints/main.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

deepmd/pt/entrypoints/main.py#L108-L109

Added lines #L108 - L109 were not covered by tests

Check warning on line 127 in deepmd/pt/entrypoints/main.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

deepmd/pt/entrypoints/main.py#L127

Added line #L127 was not covered by tests

Check warning on line 163 in deepmd/pt/entrypoints/main.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

deepmd/pt/entrypoints/main.py#L163

Added line #L163 was not covered by tests

Check warning on line 2 in deepmd/pt/loss/ener.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

deepmd/pt/loss/ener.py#L2

Added line #L2 was not covered by tests

Check warning on line 18 in deepmd/pt/loss/ener.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

deepmd/pt/loss/ener.py#L18

Added line #L18 was not covered by tests

Check warning on line 165 in deepmd/pt/loss/ener.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

deepmd/pt/loss/ener.py#L164-L165

Added lines #L164 - L165 were not covered by tests

Check warning on line 167 in deepmd/pt/loss/ener.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

deepmd/pt/loss/ener.py#L167

Added line #L167 was not covered by tests

Check warning on line 205 in deepmd/pt/loss/ener.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

deepmd/pt/loss/ener.py#L205

Added line #L205 was not covered by tests

Check warning on line 2 in deepmd/pt/loss/loss.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

deepmd/pt/loss/loss.py#L2

Added line #L2 was not covered by tests

Check warning on line 8 in deepmd/pt/loss/loss.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

deepmd/pt/loss/loss.py#L8

Added line #L8 was not covered by tests

Check warning on line 23 in deepmd/pt/loss/loss.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

deepmd/pt/loss/loss.py#L22-L23

Added lines #L22 - L23 were not covered by tests

Check warning on line 25 in deepmd/pt/loss/loss.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

deepmd/pt/loss/loss.py#L25

Added line #L25 was not covered by tests

Check warning on line 207 in deepmd/pt/model/atomic_model/dp_atomic_model.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

deepmd/pt/model/atomic_model/dp_atomic_model.py#L207

Added line #L207 was not covered by tests

Check warning on line 209 in deepmd/pt/model/atomic_model/dp_atomic_model.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

deepmd/pt/model/atomic_model/dp_atomic_model.py#L209

Added line #L209 was not covered by tests

Check warning on line 2 in deepmd/pt/model/descriptor/__init__.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

deepmd/pt/model/descriptor/__init__.py#L2

Added line #L2 was not covered by tests

Check warning on line 91 in deepmd/pt/model/descriptor/descriptor.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

deepmd/pt/model/descriptor/descriptor.py#L91

Added line #L91 was not covered by tests

Check warning on line 151 in deepmd/pt/model/descriptor/dpa1.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

deepmd/pt/model/descriptor/dpa1.py#L150-L151

Added lines #L150 - L151 were not covered by tests

Check warning on line 159 in deepmd/pt/model/descriptor/dpa1.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

deepmd/pt/model/descriptor/dpa1.py#L157-L159

Added lines #L157 - L159 were not covered by tests

Check warning on line 163 in deepmd/pt/model/descriptor/dpa1.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

deepmd/pt/model/descriptor/dpa1.py#L162-L163

Added lines #L162 - L163 were not covered by tests

Check warning on line 166 in deepmd/pt/model/descriptor/dpa1.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

deepmd/pt/model/descriptor/dpa1.py#L166

Added line #L166 was not covered by tests

Check warning on line 176 in deepmd/pt/model/descriptor/dpa1.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

deepmd/pt/model/descriptor/dpa1.py#L176

Added line #L176 was not covered by tests

Check warning on line 295 in deepmd/pt/model/descriptor/dpa2.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

deepmd/pt/model/descriptor/dpa2.py#L294-L295

Added lines #L294 - L295 were not covered by tests