Chadrick's Blog

  • Posts

July 2020

error fix

cd not working in sh script

problem I had a shell script like the following and I was trying to run it with $ sh somescript.sh but it kept failing with the error something liek “cd: no directory”. Solution After resaving the script file with LF instead of CRLF, the script worked. I was using intellij Read more…

By chadrick_author, 2 years2 years ago
pytorch

calculating gradient for selected tensors in pytorch

the above is an example code of showing how to calculate gradients for a few wanted tensors. In this case, I only wanted to calculate the gradient of conv2.weight so that I can later on update only this weight with the amount calculated based on the the gradient produced by Read more…

By chadrick_author, 2 years2 years ago
error fix

fixing intellij remote password not properly saved error

Problem After windows update, for some reason I have to keep re-entering remote server passwords whenever I start intelliJ and work on a remote server. This did not happen before. Before this problem happened, I only need to enter the password once, save it, and it would not ask the Read more…

By chadrick_author, 2 years ago
Recent Posts
  • creating your own pytorch scheduler
  • paper review: “Donut : Document Understanding Transformer without OCR”
  • paper review: “BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehension”
  • get git short hash in python
  • paper summary: “DocFormer: End-to-End Transformer for Document Understanding”
Categories
  • algorithm
  • c/c++
  • cuda
  • data science
  • deep learning
  • error fix
  • kicad
  • kotlin
  • linux
  • postgres
  • python
  • pytorch
  • tensorflow
  • Uncategorized
  • web
Recent Comments
  • Anonymous on error fix: onnxruntime “Type Error: Type ‘tensor(int64)’ of input parameter of operator(Min) in node is invalid’
  • Yoann on cv2 resize interpolation methods
  • Anonymous on fix ‘certificate apiserver-kubelet-client not signed by CA certificate ca: crypto/rsa: verification error’ error during minikube start
  • Augusto de Lelis Araujo on get rotation angle between two vectors
  • Augusto de Lelis Araujo on get rotation angle between two vectors
Archives
  • May 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • July 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
  • February 2019
  • January 2019
  • December 2018
  • November 2018
Meta
  • Register
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
  • Posts
Hestia | Developed by ThemeIsle