type below:
brew update
brew install redis
To have launchd start redis now and restart at login:
brew services start redis
| from selenium import webdriver | |
| from selenium.webdriver.support.ui import WebDriverWait | |
| from selenium.webdriver.common.by import By | |
| from selenium.webdriver.support import expected_conditions as EC | |
| import requests | |
| import os | |
| def download_all_papers(base_url, save_dir, driver_path): | |
| driver = webdriver.Chrome(driver_path) |
type below:
brew update
brew install redis
To have launchd start redis now and restart at login:
brew services start redis
| // An example of using the PyTorch C++ API to implement a custom forward and backward function | |
| #include <iostream> | |
| #include <vector> | |
| #include <torch/torch.h> | |
| #include <torch/csrc/autograd/variable.h> | |
| #include <torch/csrc/autograd/function.h> | |
| #include <torch/csrc/autograd/VariableTypeUtils.h> | |
| #include <torch/csrc/autograd/functions/utils.h> |