Pytorch (2) 썸네일형 리스트형 [Jupyter notebook] notebook에서 Java script와 통신하기 딥러닝 모델을 학습하고 데모를 하기 위해 별도의 web application을 만드는 경우가 종종있다. 하지만, 간단한 데모를 우해서 backend와 frontend를 만드는 과정이 귀찮고 번거로울 수 있다. 우리가 평소에 자주쓰는 Jupyter notebook위에서 notebook를 frontend로 사용하여 동적인 작업을 위한 Javascript를 추가하고 notebook kernel과 연결하면 양뱡향 통신이 가능하도록 할수 있다. 1. Notebook에 Javascript 삽입 input.html github.com/awslabs/amazon-sagemaker-examples/blob/master/sagemaker-python-sdk/pytorch_mnist/input.html Clear demo... [Pytorch] permute vs view permute? view? torch framework에서 torch tensor를 다루다 보면 tensor의 shape을 변형할 필요가 생긴다. 이때 단지 shape만을 맞추는 것은 permute와 view모두 가능하지만 두 개의 torch operation은 다른 결과를 가져올수 있고 의미를 고려하여 사용하여야 한다. permute Returns a view of the original tensor with its dimensions permuted. view Returns a new tensor with the same data as the self tensor but of a different shape. A difference between permute and view permute는 tran.. 이전 1 다음