Skip to content

Update data_loader.py

65ebf97
Select commit
Loading
Failed to load commit list.
Draft

refactor(pt): refactor training code #5216

Update data_loader.py
65ebf97
Select commit
Loading
Failed to load commit list.
GitHub Advanced Security / CodeQL succeeded Feb 11, 2026 in 8s

7 new alerts

New alerts in code changed by this pull request

  • 7 notes

See annotations below for details.

View all branch alerts.

Annotations

Check notice on line 344 in deepmd/pt/train/checkpoint_manager.py

See this annotation in the file changed.

Code scanning / CodeQL

Empty except Note

'except' clause does nothing but pass and there is no explanatory comment.

Check notice on line 70 in deepmd/pt/train/data_loader.py

See this annotation in the file changed.

Code scanning / CodeQL

Statement has no effect Note

This statement has no effect.

Check notice on line 74 in deepmd/pt/train/data_loader.py

See this annotation in the file changed.

Code scanning / CodeQL

Statement has no effect Note

This statement has no effect.

Check notice on line 78 in deepmd/pt/train/data_loader.py

See this annotation in the file changed.

Code scanning / CodeQL

Statement has no effect Note

This statement has no effect.

Check notice on line 82 in deepmd/pt/train/data_loader.py

See this annotation in the file changed.

Code scanning / CodeQL

Statement has no effect Note

This statement has no effect.

Check notice on line 87 in deepmd/pt/train/data_loader.py

See this annotation in the file changed.

Code scanning / CodeQL

Statement has no effect Note

This statement has no effect.

Check notice on line 414 in deepmd/pt/train/trainer.py

See this annotation in the file changed.

Code scanning / CodeQL

Unused local variable Note

Variable finetune_has_new_type_key is not used.