본문 바로가기
728x90
반응형

Python288

[Py] dis 모듈 - Python Python의 dis 모듈: 바이트코드 disassemble하기Python은 인터프리터 언어지만, 실행 전에 source code (원시코드)를 bytecode (바이트코드) 라는 중간 형태로 컴파일하여 성능을 향상시킴.이 바이트코드는 Python의 가상 머신(보통 CPython VM)에서 실행됨.이를 disassemble(역어셈블)하여 분석할 수 있게 해주는 도구가 표준 라이브러리의 dis 모듈임.2024.06.05 - [CE] - [CE] Bytecode (바이트코드) [CE] Bytecode (바이트코드)Bytecode (바이트코드)정의:Bytecode는 고수준 프로그래밍 언어로 작성된 source code를 중간 형태로 변환한 code 임.이는 특정 Virtual Machine (VM)에서 실행.. 2025. 3. 11.
[DL] Tensor 다루기 기초 - PyTorch 중심 https://dsaint31.tistory.com/891 [ML] Tensor: Scalar, Vector, Matrix.Tensor 종류1. Scalar (0차원 tensor)하나의 숫자로 표현되는 가장 기본적인 형태.크기(magnitude)만을 가지며 방향은 없음.예시: 온도(25°C), 나이(20), 가격(1000원)# 파이썬/NumPy에서의 표현scalar = 5.02. Vector (dsaint31.tistory.comhttps://dsaint31.tistory.com/456 [Programming] Primitive Data Type : C, C++, NumPy, TorchPrimitive Data Type이(Unboxed type)란?C, C++, NumPy, PyTorch, TensorF.. 2025. 3. 7.
[Py] Python Launcher for Windows - py 소개Python Launcher for Windows py는Windows 플랫폼에서Python 스크립트를 실행하거나특정 Python 버전을 호출할 때 사용하는 명령줄 도구.py --list 를 통해 사용가능한 여러 버전의 python을 확인 가능함.py -3.9 와 같은 형태로 특정 버전의 python을 지정하여 실행할 수도 있음: 뒤에 실행할 main script를 놓아도 됨. 참고로, Python Launcher 의 major version과 minor version 만 인식하므로 이를 반영하여 py -3.9 형태로 실행할 것.2024.09.19 - [Python] - [Etc] SW Version: Semantic Versioning + packaging.version [Etc] SW Version.. 2025. 3. 6.
[Py] How to Install Python on Windows from Python.org 이 문서는 python.org 에서 제공하는 Python을 Windows에 설치하는 방법을 단계별로 설명함. 일반적으로는 conda등을 이용한 설치를 보다 선호함.2025.03.02 - [개발환경] - [Tool] conda 사용법 - Anaconda and Miniconda [Tool] conda 사용법 - Anaconda and Miniconda1. Conda란?프로그래밍 언어(특히 Python)의 패키지, 종속성을 관리하기 위한 오픈 소스 패키지 관리 시스템(or Package Manager)과이들이 설치되어 구성되는 (가상)환경을 관리하는 환경관리시스템(packageds31x.tistory.com다운로드python.org 웹사이트에 가서 Downloads를 선택하여 Python 3.13.2 (최신.. 2025. 3. 6.
[PySide6] Installing PySide6 (and Designer) on Windows (with Conda) 기존에 conda 가상환경에 다시 pip로 설치를 했었는데,conda를 25.1.1 로 업데이트하고 PySide6와 designer를 설치하니 제대로 설치가 됨. Prerequisiteconda : conda-forge 채널에서 설치.os : Windows11, 23H2 (22631.4751)Installconda create -n pyside6 -c conda-forge qt-main pyside6qt-main : Qt Framework의 핵심구성요소를 포함하는 패키지 (designer를 사용하려면 설치가 필수임)pyside6 : Qt Framework의 Python Binding. 2025.2.11 설치 당시 기본으로 설치되는 버전은 다음과 같음.qt-main : 5.15.15 (채널: conda-f.. 2025. 2. 11.
[PyTorch] torchvision.transforms 사용법 - transforms란? PyTorch의 torchvision.transforms:이미지 전처리와 데이터 증강을 위한 도구torchvision.transforms는PyTorch에서 제공하는 이미지 전처리 및 data augmentation을 위한 module.이 모듈은 이미지 데이터를 이용한 딥러닝 모델의 학습 효율을 높이고 데이터 준비 과정을 단순화하는 데 사용됨.현재는 torchvision.transforms.v2 를 대신 사용하는 것이 권장됨(torchvision 0.15가 공개된 2023년 3월 이후):2025.06.17 - [Python] - [torchvision] transforms.v2, transforms.v2.functional, 그리고 kernel [torchvision] transforms.v2, trans.. 2025. 1. 12.
728x90
반응형