Skip to content

use simpler torch.as_tensor instead of if/else

bf17473
Select commit
Loading
Failed to load commit list.
Merged

Add torch_sim/typing.py #157

use simpler torch.as_tensor instead of if/else
bf17473
Select commit
Loading
Failed to load commit list.
Codecov / codecov/patch succeeded Apr 17, 2025 in 0s

83.09% of diff hit (target 80.00%)

View this Pull Request on Codecov

83.09% of diff hit (target 80.00%)

Annotations

Check warning on line 59 in torch_sim/models/fairchem.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

torch_sim/models/fairchem.py#L59

Added line #L59 was not covered by tests

Check warning on line 37 in torch_sim/models/mattersim.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

torch_sim/models/mattersim.py#L37

Added line #L37 was not covered by tests

Check warning on line 63 in torch_sim/models/orb.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

torch_sim/models/orb.py#L63

Added line #L63 was not covered by tests

Check warning on line 21 in torch_sim/models/sevennet.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

torch_sim/models/sevennet.py#L21

Added line #L21 was not covered by tests

Check warning on line 134 in torch_sim/runners.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

torch_sim/runners.py#L134

Added line #L134 was not covered by tests

Check warning on line 801 in torch_sim/trajectory.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

torch_sim/trajectory.py#L801

Added line #L801 was not covered by tests

Check warning on line 12 in torch_sim/typing.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

torch_sim/typing.py#L10-L12

Added lines #L10 - L12 were not covered by tests

Check warning on line 14 in torch_sim/typing.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

torch_sim/typing.py#L14

Added line #L14 was not covered by tests

Check warning on line 813 in torch_sim/workflows/a2c.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

torch_sim/workflows/a2c.py#L813

Added line #L813 was not covered by tests

Check warning on line 886 in torch_sim/workflows/a2c.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

torch_sim/workflows/a2c.py#L886

Added line #L886 was not covered by tests