-i
- ignore errors
-c
- continue
-t
- use video title as file name
--extract-audio
- extract audio track
import torch | |
import tensorflow as tf | |
########## PyTorch Version 1 ################ | |
x = torch.randn(5, 6) | |
norm_th = x/torch.norm(x, p=2, dim=1, keepdim=True) | |
norm_th[torch.isnan(norm_th)] = 0 # to avoid nan | |
########## PyTorch Version 2 ################ | |
norm_th = torch.nn.functional.normalize(x, p=2, dim=1) |
def is_valid_state(state): | |
# check if it is a valid solution | |
return True | |
def get_candidates(state): | |
return [] | |
def search(state, solutions): | |
if is_valid_state(state): | |
solutions.append(state.copy()) |
import torch | |
input = torch.randn(1, 2, 1025); input | |
##### ENCODER | |
# layer-1 | |
downsample_1a = torch.nn.Conv1d(2, 20, 5 , stride=1, padding=0) | |
downsample_1b = torch.nn.Conv1d(2, 20, 50 , stride=1, padding=0) | |
downsample_1c = torch.nn.Conv1d(2, 20, 256 , stride=1, padding=0) | |
downsample_1d = torch.nn.Conv1d(2, 20, 512 , stride=1, padding=0) |
Step 1: Generate first ssh key Type the following command to generate your first public and private key on a local workstation. Next provide the required input or accept the defaults. Please do not change the filename and directory location.
workstation 1 $ ssh-keygen -t rsa
Finally, copy your public key to your remote server using scp
In this article, I will share some of my experience on installing NVIDIA driver and CUDA on Linux OS. Here I mainly use Ubuntu as example. Comments for CentOS/Fedora are also provided as much as I can.
# The command finds the most recent tag that is reachable from a commit. | |
# If the tag points to the commit, then only the tag is shown. | |
# Otherwise, it suffixes the tag name with the number of additional commits on top of the tagged object | |
# and the abbreviated object name of the most recent commit. | |
git describe | |
# With --abbrev set to 0, the command can be used to find the closest tagname without any suffix: | |
git describe --abbrev=0 | |
# other examples |
The natural way to start with CUDA if you plan to be self taught is:
CUDA by Example: An Introduction to General-Purpose GPU Programming by Jason Sanders and Edward Kandrot Nice introduction. It is more like playing with your GPU and admire its capabilities.
Programming Massively Parallel Processors, Second Edition: A Hands-on Approach by David B. Kirk and Wen-mei W. Hwu It explains a lot of things in GPU Programming. You simply can't go without it.
Whether you're trying to give back to the open source community or collaborating on your own projects, knowing how to properly fork and generate pull requests is essential. Unfortunately, it's quite easy to make mistakes or not know what you should do when you're initially learning the process. I know that I certainly had considerable initial trouble with it, and I found a lot of the information on GitHub and around the internet to be rather piecemeal and incomplete - part of the process described here, another there, common hangups in a different place, and so on.
In an attempt to coallate this information for myself and others, this short tutorial is what I've found to be fairly standard procedure for creating a fork, doing your work, issuing a pull request, and merging that pull request back into the original project.
Just head over to the GitHub page and click the "Fork" button. It's just that simple. Once you've done that, you can use your favorite git client to clone your repo or j