Skip to content

Commit

Permalink
[Bugfix] fix import bug, torch is not always installed (#1106)
Browse files Browse the repository at this point in the history
Co-authored-by: vincentpierre <vincentpierre@users.noreply.github.com>
  • Loading branch information
vincentpierre and vincentpierre authored Jan 30, 2023
1 parent 84fa782 commit fe43595
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion habitat-lab/habitat/core/vector_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ def _valid_start_methods(self) -> Set[str]:

def _warn_cuda_tensors(
self,
action: Union[int, np.ndarray, Dict[str, Any], torch.Tensor],
action: Union[int, np.ndarray, Dict[str, Any], "torch.Tensor"],
prefix: Optional[str] = None,
):
if torch is None:
Expand Down

0 comments on commit fe43595

Please sign in to comment.