Skip to content

add support for deepmd-pytorch #25

add support for deepmd-pytorch

add support for deepmd-pytorch #25

Triggered via push September 22, 2023 14:18
Status Failure
Total duration 1m 12s
Artifacts

pyright.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors
pyright: dpgen2/_version.py#L7
Type annotation not supported for this statement (reportGeneralTypeIssues)
pyright: dpgen2/_version.py#L8
Type annotation not supported for this statement (reportGeneralTypeIssues)
pyright: dpgen2/fp/deepmd_pt.py#L139
Import "deepmd_pt.infer.deep_eval" could not be resolved (reportMissingImports)
pyright: dpgen2/fp/deepmd_pt.py#L133
Argument of type "str" cannot be assigned to parameter "model" of type "Path" in function "_load_model"   "str" is incompatible with "Path" (reportGeneralTypeIssues)
pyright: dpgen2/fp/deepmd_pt.py#L162
Argument of type "NDArray[Any]" cannot be assigned to parameter "atype" of type "List[int]" in function "_evaluate"   "NDArray[Any]" is incompatible with "List[int]" (reportGeneralTypeIssues)
pyright: dpgen2/fp/deepmd_pt.py#L168
Cannot access member "to_deepmd_npy" for type "LabeledSystem"   Member "to_deepmd_npy" is unknown (reportGeneralTypeIssues)
pyright: dpgen2/fp/deepmd_pt.py#L148
"reshape" is not a known member of "None" (reportOptionalMemberAccess)
pyright: dpgen2/fp/deepmd_pt.py#L149
Cannot access member "reshape" for type "List[int]"   Member "reshape" is unknown (reportGeneralTypeIssues)
pyright: dpgen2/op/run_dp_train.py#L203
"dp_command" is possibly unbound (reportUnboundVariable)
pyright: dpgen2/op/run_dp_train.py#L211
"dp_command" is possibly unbound (reportUnboundVariable)