묻고 답해요
156만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결딥러닝 CNN 완벽 가이드 - Pytorch 버전
Attribute Error(Frame Work 3번째 강의)
''' 질문 내용 강의 수강하며 따로 코드 수정없이 실행해보며 이해해보는 중입니다. 아래와 같은 에러가 나서 수정해보고자 하는데 에러 해결이 안되어서 여쭤봅니다. 상기의 ''' ######### 실행 코드 from torch.optim import Adam BATCH_SIZE = 32 INPUT_SIZE = 28 # train_loader = DataLoader(train_data, batch_size=BATCH_SIZE, shuffle=True, num_workers=4 ) # val_loader = DataLoader(val_data, batch_size=BATCH_SIZE, shuffle=False, num_workers=4) # model, device, optimizer, loss 함수 생성. model = create_simple_linear_model(input_size=INPUT_SIZE, num_classes=10) device = torch.device('cuda' if torch.cuda.is_available() else 'cpu') optimizer = Adam(model.parameters(), lr=0.001) loss_fn = nn.CrossEntropyLoss() # Trainer 객체 생성. trainer = Trainer_01(model=model, loss_fn=loss_fn, optimizer=optimizer, train_loader=train_loader, val_loader=val_loader, device=device) #fit() 을 호출하여 학습과 검증을 epochs 수 만큼 반복 수행. trainer.fit(epochs=10) ########### 에러내용 --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) /tmp/ipykernel_36/3815854863.py in <cell line: 0>() 8 model = create_simple_linear_model(input_size=INPUT_SIZE, num_classes=10) 9 device = torch.device('cuda' if torch.cuda.is_available() else 'cpu') ---> 10 optimizer = Adam(model.parameters(), lr=0.001) 11 loss_fn = nn.CrossEntropyLoss() 12 /usr/local/lib/python3.11/dist-packages/torch/optim/adam.py in init(self, params, lr, betas, eps, weight_decay, amsgrad, foreach, maximize, capturable, differentiable, fused) 97 fused=fused, 98 ) ---> 99 super().__init__(params, defaults) 100 101 if fused: /usr/local/lib/python3.11/dist-packages/torch/optim/optimizer.py in init(self, params, defaults) 375 376 for param_group in param_groups: --> 377 self.add_param_group(cast(dict, param_group)) 378 379 # Allows cudagraph_capture_health_check to rig a poor man's TORCH_WARN_ONCE in python, /usr/local/lib/python3.11/dist-packages/torch/_compile.py in inner(*args, **kwargs) 25 disable_fn = getattr(fn, "__dynamo_disable", None) 26 if disable_fn is None: ---> 27 import torch._dynamo 28 29 disable_fn = torch._dynamo.disable(fn, recursive) /usr/local/lib/python3.11/dist-packages/torch/_dynamo/__init__.py in <module> 1 import torch 2 ----> 3 from . import convert_frame, eval_frame, resume_execution 4 from .backends.registry import list_backends, lookup_backend, register_backend 5 from .callback import callback_handler, on_compile_end, on_compile_start /usr/local/lib/python3.11/dist-packages/torch/_dynamo/convert_frame.py in <module> 31 from torch._C._dynamo.guards import GlobalStateGuard 32 from torch._dynamo.distributed import get_compile_pg ---> 33 from torch._dynamo.symbolic_convert import TensorifyState 34 from torch._guards import compile_context, CompileContext, CompileId, tracing 35 from torch._logging import structured /usr/local/lib/python3.11/dist-packages/torch/_dynamo/symbolic_convert.py in <module> 28 from torch._guards import tracing, TracingContext 29 ---> 30 from . import config, exc, logging as torchdynamo_logging, trace_rules, variables 31 from .bytecode_analysis import ( 32 get_indexof, /usr/local/lib/python3.11/dist-packages/torch/_dynamo/trace_rules.py in <module> 3264 "torch.distributed._composable.replicate", 3265 } -> 3266 if not torch._dynamo.config.skip_fsdp_hooks: 3267 LEGACY_MOD_INLINELIST.add("torch.distributed.fsdp._fully_shard") 3268 AttributeError: partially initialized module 'torch._dynamo' has no attribute 'config' (most likely due to a circular import)
-
미해결스프링 핵심 원리 - 기본편
빌드 오류가 남니다
Execution failed for task ':test'.> There were failing tests. See the report at: file:///E:/%EA%B9%80%EC%98%81%ED%95%9C%20%EC%8A%A4%ED%94%84%EB%A7%81%20%EA%B8%B0%EB%B3%B8/core/build/reports/tests/test/index.html* Try:> Run with --scan to get full insights.BUILD FAILED in 8s4 actionable tasks: 2 executed, 2 up-to-dategradle 도 최신 버전이고, 강의와 똑같이 쳤는데 다음과 같이 나와요 ㅠ 학습하는 분들께 도움이 되고, 더 좋은 답변을 드릴 수 있도록 질문전에 다음을 꼭 확인해주세요.1. 강의 내용과 관련된 질문을 남겨주세요.2. 인프런의 질문 게시판과 자주 하는 질문(링크)을 먼저 확인해주세요.(자주 하는 질문 링크: https://bit.ly/3fX6ygx)3. 질문 잘하기 메뉴얼(링크)을 먼저 읽어주세요.(질문 잘하기 메뉴얼 링크: https://bit.ly/2UfeqCG)질문 시에는 위 내용은 삭제하고 다음 내용을 남겨주세요.=========================================[질문 템플릿]1. 강의 내용과 관련된 질문인가요? (예/아니오)2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예/아니오)3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예/아니오)[질문 내용]여기에 질문 내용을 남겨주세요.
-
해결됨회사에서 바로 쓰는 업무자동화 AI 에이전트 (w. n8n, LangGraph)
Gamil Trigger 관련 이슈
Gmail Trigger가 Naver에서 받은 이메일에는 반응하지 않네요? 의도한건지 이슈인지 모르겠지만 저는 당연히 해당 이메일 계정으로 온 모든 메일에 대해 반응할 거라 생각했는데 아니라서 당황했네요. 다른 분들 참고하시라고 글 남깁니다!
-
미해결
Where Can You Find Reliable Ghostwriting Services?
Hi everyone,I’m looking for some advice and thought this would be the best place to ask. I’ve been considering hiring an online ghostwriting service but I’m not sure where to start. There are so many options out there, and it’s hard to tell which ones are reliable and which might not deliver good work.I want to find a service that can handle projects professionally, keep everything confidential, and of course, provide writing that feels authentic. My biggest concern is ending up with low-quality work or dealing with missed deadlines.If any of you have used an online ghostwriting service before, I’d love to hear about your experience. Where did you find the service? How did you make sure it was trustworthy? Were you happy with the results?Any recommendations or tips on how to choose the right service would be really helpful. Thanks in advance for your suggestions!
-
미해결
Who Can Benefit from Professional Ghostwriting Services?
Hi everyone, I hope you’re doing well. I wanted to start a discussion and get your thoughts on something that’s been on my mind. Who do you think can really benefit from professional ghost writer services?From what I see, many people assume ghostwriting is only for famous authors or busy CEOs, but I feel the scope might be much wider. For example, professionals who want to share their expertise but don’t have time to write, small business owners who need a strong brand story, or even students who want help putting their ideas into clear words.Personally, I believe professional ghost writer services can be useful for anyone who has ideas but struggles to put them into writing in a clear and engaging way. But I’d love to hear from you all—who do you think gains the most from hiring a ghostwriter? Have you ever used one or considered it?Looking forward to your insights!
-
미해결그리드(Grid) 핵심이론 및 실전 활용
grid-row, grid-column span에 관한 질문
grid-column: 2/ 4와 grid-column: 1 / span 3은 동일한 동작을 한다고 하셨습니다. 그러나 Holly Grail 레이아웃 제작(2)에서 .header { grid-column: 1 / 4; } .menu { grid-row: 2 / 4; } .footer { grid-column: 2 / 4; }위 코드와 .header { grid-column: 1 / span 3; } .menu { grid-row: 2 / span 3; } .footer { grid-column: 2 / span 3; }은 다르게 동작합니다. 왜 같게 동작한다고 알려주셨나요..
-
미해결FastAPI: Python으로 3배 빠르게, 2배 정확한, 10배 빠른 API 만들기
강의자료 링크로 들어가면 페이지를 찾지못한다고 나와요
💡 질문하기 전에 먼저 확인해보세요! 답변을 기다리는 동안, 아래 항목들을 먼저 확인해보시면 문제가 해결될 수도 있어요.강의 내용 다시 보기: 혹시 놓친 부분이 없는지 해당 챕터의 강의를 한 번 더 돌려보셨나요?오타 및 들여쓰기 확인: 파이썬은 특히 들여쓰기에 민감해요. 코드에 오타나 잘못된 들여쓰기는 없는지 꼼꼼히 확인해주세요.에러 메시지 검색: 빨간색 에러 메시지가 떴다면, 메시지 전체를 복사해서 구글에 그대로 붙여넣기 해보세요. 전 세계 개발자들이 비슷한 문제를 겪고 해결책을 공유해두었을 확률이 높습니다.Q&A 게시판 검색: 혹시 다른 분이 먼저 비슷한 질문을 올렸는지 게시판을 한번 살펴보는 것도 좋은 방법이에요.
-
미해결[리뉴얼] 파이썬입문과 크롤링기초 부트캠프 [파이썬, 웹, 데이터 이해 기본까지] (업데이트)
선생님 강의중에서 sqlite3 강의를 제공한 강의가 있나요?
지금 강의에 대한 질문은아니고,선생님 강의를 여러개를 구매했는데, 선생님 강의중에서 sqlite3를 설명해주신 강의가 있던거 같은데, 오늘 오랜만에 보려고 하니까 못찾겠더라구요.. 그래서 제 기억이 틀린건지. 아니면 못찾는건지 궁금해서 문의드립니다.
-
미해결10주완성 C++ 코딩테스트 | 알고리즘 코딩테스트
2-F 틀린이유 모르겠습니다
http://boj.kr/b9ecf8f79edf460b9dc47213ca5a045b저는 분명 모든 조건을 다 맞게 썼다고 생각하는데 자꾸 틀렸다고 나오네요 이유를 모르겠습니다
-
미해결AWS Certified Cloud Practitioner 자격증 준비하기
[문의] 수강 기간 연장
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. 안녕하세요, 강의 수강 중인 수강생입니다.혹시 강의 수강 기간 연장이 가능할까요?감사합니다
-
해결됨[개정판 2023-11-27] Spring Boot 3.x 를 이용한 RESTful Web Services 개발
pdf 자료는 없나요?
강의 pdf 교안은 없나요?
-
미해결PCB HW설계 실무 : STM32를 활용한 Mixed-signal 보드 설계 프로젝트
소자 통신 방법?
수업을 들으면서 아직 이해가 부족한 사항이 있어 문의드립니다. -. 디버깅용 MCU의 경우에는 JTAG 통신방식을 사용하고, Ethernet PHY의 경우엔 MII통신 등등을 사용하는데 이런 통신 방식을 정하는 규격?이 정해져 있는 것일까요?
-
해결됨PCB HW설계 실무 : STM32를 활용한 Mixed-signal 보드 설계 프로젝트
Power budget 관련 질문.
Power budget 작성하기 수강중 궁금한사항이 생겨 질문 드립니다.-.3.3V를 기준으로 MCU,PHY, ADC등을 동작하도록 그에 맞는 전류 값을 찾아 Power budget을 최대로 잡았는데, 데이타 시트를 보면 구동 전압 범위도 다른 것 같습니다. 일반적으로 소자마다 어떤 최적값을 기준으로 두고 사용을하는건지 아니면 전압 드롭으로 만들어진 전압을 기준으로 사용하는지 궁금합니다.
-
미해결비전공자도 이해할 수 있는 CI/CD 입문·실전
보안그룹 생성 오류
강사님, 보안그룹 HTTP 추가 하면 위와 같이 경고문구가 뜨면서 인스턴스 생성이 불가합니다..! 어떻게 수정해야 할까요
-
미해결
Looking for the Best 5000 Puffs Vape in the UAE?
Puff, your reliable online vape shop, offers premium 5000 Puffs vape in the United Arab Emirates. Puff provides a flawless shopping experience for all vaping needs, from premium products to efficient delivery. You'll find the ideal fit regardless of your level of experience. Enjoy first-rate service only at Puff when you shop now.
-
미해결내 가치를 높이는 노션 이력서 만들기
업무 경험란에 직무랑 관련없는 업무 경험은 안 적는게 낫나요?
안녕하세요. 강의를 보면서 하나씩 따라해보고 있는데요.work experience 란에 데이터 분석가라는 직무에 관련있는 업무 경험을 넣는 예시를 보여주셨는데, 직무에 관련없는 업무 경험만 있다면 이런 경우엔 안 쓰는 게 더 나을까요?
-
미해결비전공자 혼자서 하루 만에 수익화 앱 출시하기
agent 설정시 무료 사용은 gpt 4.1 로 사용하라는데 gpt로 변경 해도 상관없나요?
agent 설정시 무료 사용은 gpt 4.1 로 사용하라는데 gpt로 변경 해도 상관없나요?
-
미해결김영한의 실전 데이터베이스 - 기본편
애플리케이션 코드 관리
안녕하세요 스승님!질문드립니다! 데이터 정합성을 위한 확인 절차는 front, back, DB에서 3중으로 처리하는게 좋은가요? 아니면 애플리케이션 레이어에서 처리하는게 좋을까요? (3중으로 하면 처리가 빠르고 정확할 수 있다는 장점이 있지만 처리 조건이 변경되는 경우 3군데에서 모두 변경이 있어야한다는 점이 꽤 번거로울 것 같습니다...)이후 설계에서 다뤄주시겠지만, 1:1 관계의 테이블로 연결된 두 테이블에서 FK에 UNIQUE 제약을 거는게 일반적인지도 궁금합니다.매번 덕분에 성장하고있슴다!감사합니다!
-
해결됨독하게 시작하는 C 프로그래밍
직접지정과 간접지정을 잘 모르겠습니다.
메모리 공간 지정에 대한 개념 인건지 해당 메모리(대상)에 접근하는 방식에 대한 개념 인건지가 햇갈립니다. 직접지정에 대한 설명을 들으면 데이터에 메모리주소를 부여하는 방식인데 주소상수를 통해 직접적으로 "너 여기 공간 써"하고 메모리 주소를 부여하는 느낌인것같기도하고, 간접지정설명을 들으면 어떤 메모리에 접근하고자하는 데이터가 저장된 메모리주소를 저장시켜 해당 데이터에 접근하는 느낌인것 같기도 합니다.
-
해결됨Spring Cloud로 개발하는 마이크로서비스 애플리케이션(MSA)
강의 업데이트 계획이 궁금합니다.
현재 강의를 약 60% 정도 수강한 상태이며, 이제 강의가 아직 업데이트되지 않은 부분만 남아 있습니다.향후 강의 업데이트 일정이나 계획이 어떻게 되는지 알 수 있을까요?업데이트 계획에 따라 남은 강의를 수강하려고 합니다.