전체 글 49

저널과 학회에 대한 간단한 정리

저널 순위 확인 Web of Science: https://jcr.clarivate.com/jcr/home?Init=Yes&SrcApp=IC2LS 우측 상단 드롭 다운 메뉴 -> Journal Citation Reports Impact Factor Q1, Q2, Q3, Q4 Impact Factor 기준으로 4분위를 나눈 것. JCR(Journal Citation Reports) Clarivate에서 제공하는 저널별 순위. IEEE 이름 이해하기 Transaction: 수식이 많은 최적화 논문 Survey & Tutorial: 기술 리뷰 Magazine: 새로운 개념의 제시 Full-paper: 11~14장 Letter: 4장 학회 우수 학회 찾아보기: BK21 우수 국제학술대회 AAAI, CVPR, E..

TypeError: new() received an invalid combination of arguments

TypeError: new() received an invalid combination of arguments - got (float, int, int, int), but expected one of: * (*, torch.device device) * (torch.Storage storage) * (Tensor other) * (tuple of ints size, *, torch.device device) * (object data, *, torch.device device) 현재 이미지 인페인팅과 관련된 논문의 코드를 뜯어보며 공부중인데, DeconvResnetBlock을 생성하는 부분에서 위와 같은 오류가 발생했다. (git link: https://github.com/xcyan/neurips18_..

변수의 구분

전역변수 함수 외부 선언. 함수 내부 참조 가능. 지역변수 함수 내부 선언. 함수 내부 참조 가능. 함수 종료시 삭제. 글로벌 변수 함수 내부, 외부 선언 가능. 함수 내부 참조 가능. 함수 내부 변경 가능. 정적 변수 클래스 내부에 선언된 변수. a = 5 #전역 변수 b = 10 #전역 변수 def ex(): a = 10 #지역 변수 global b #글로벌 변수로 재정의 b = 15 print("함수 안에서 선언된 지역 변수 a: {}".format(a)) print("함수 안에서 선언된 글로벌 변수 b: {}".format(b)) print("함수 바깥에서 선언된 전역 변수 a: {}".format(a)) #5(전역 변수) print("함수 바깥에서 선언된 전역 변수 b: {}".format(b)..

클래스

클래스 상속 class Person: def __init__(self, name, age): self.name = name self.age = age def get_name(self): print("My name is {}".format(self.name)) def get_age(self): print("I'm {} years old".format(self.age)) class Student(Person): #부모 클래스를 상속 받으면 자동으로 변수와 기본 함수도 따라 온다. def __init__(self, name, age, GPA): super(Student, self).__init__(name, age) #부모 클래스의 메소드 호출 #단순히 super().__init__(name, age)라고 적..