일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Tags
- ros2 foxy docker
- ros2 foxy tutorial
- humble 도커
- error
- humble development guides
- nav2 설치
- ros2 remapping
- nav2 튜토리얼
- ubuntu humble 설치
- 코드업
- humble docker
- nav2 development guides
- ros2 development guides
- nav2 development guides
- humble nav2
- Python
- development guides
- ros2 튜토리얼
- Foxy tutorial
- ros2 getting started
- humble getting started
- docker foxy
- foxy nav2
- Nav2 document
- ROS FOXY 튜토리얼
- ubuntu ros2 설치
- nav2 dev contatiner
- CodeUp
- nav2 getting started
- CODEUP 6073
Archives
- Today
- Total
목록파이토치 is_tensor (1)
BAN2ARU
[Python/Pytorch] TORCH.IS_TENSOR : Torch Tensor 여부 확인
torch.is_tensor(obj ) obj가 PyTorch tensor라면 True를 return함 이 함수는 isinstance(obj, Tensor)을 수행하며, mypy를 통해 typechecking시에는 isinstance를 활용하는 편이 더 좋음 Parameters obj (Object) - test할 객체(object) Example >>> import torch >>> a = torch.tensor([1, 3, 5]) >>> torch.is_tensor(a) True >>> b = [1, 3, 5] >>> torch.is_tensor(b) False Reference https://pytorch.org/docs/stable/torch.html torch — PyTorch 1.11.0 do..
Language/Python
2022. 5. 17. 19:18