PyTorch-Numpy-PIL Conversion
PyTorch to Numpy The method “detach()” is going to create a new torch.Tensor on the same device where the original…
PyTorch to Numpy The method “detach()” is going to create a new torch.Tensor on the same device where the original…
Window Operations
Nginx Docker file Nginx default configuration file
curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash source ~/.bashrc nvm list-remote nvm install v16.14.0 nvm list npm install --global yarn
import requests res = requests.get(URL) with open(fpath_2save, 'rb') as file: file.write(res.content)
version: "3.3" services: myservice: image: ${your-service} ports: - "30080:80" deploy: resources: limits: cpus: '0.5' memory: 2g environment: PORT: 80 REDIRECT:…
apt / apt-get The apt and apt-get is a package management system for Debian. It supports you to install packages…
apiVersion: autoscaling/v1 kind: HorizontalPodAutoscaler metadata: name: ${APPLICATION_NAME} namespace: ${K8S_NAMESPACE} spec: scaleTargetRef: apiVersion: apps/v1 kind: Deployment name: backend-app minReplicas: 2 maxReplicas:…
git submodule add ${repository} ${path}/${name_of_submodule} git submodule deinit -f ${added_submodule} git rm -rf ${added_submodule} rm -rf .git/modules/${added_submodule}
Multiple files Single File