Skip to content

Instantly share code, notes, and snippets.

View vv111y's full-sized avatar
🏠
Working from home

vv111y vv111y

🏠
Working from home
View GitHub Profile

DatSciWorkbook

HEADER

@vv111y
vv111y / README-Template.md
Created August 14, 2019 18:46 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@vv111y
vv111y / *scratch*.txt
Last active October 4, 2020 10:26
cvimrc
site '*://*.youtube.com/*' {
unmap j
unmap k
unmap l
unmap <
unmap >
}
let blacklists = ["*://mail.google.com/*","https://keycode.info/*","http://localhost/*"]
[Trace - 01:37:28 PM] Sending request 'textDocument/hover - (337)'.
Params: {
"textDocument": {
"uri": "file:///home/will/DevAcademics/NLP/AISC-Workshop/asgn2+3/Transformer/translate.py"
},
"position": {
"line": 79,
"character": 4
}
}
[Trace - 12:41:40 PM] Sending request 'initialize - (3495)'.
Params: {
"processId": 6514,
"rootPath": "/home/will/",
"rootUri": "file:///home/will/",
"capabilities": {
"workspace": {
"workspaceEdit": {
"documentChanges": true,
"resourceOperations": [
[Trace - 12:41:21 PM] Sending request 'initialize - (3489)'.
Params: {
"processId": 6514,
"rootPath": "/home/will/",
"rootUri": "file:///home/will/",
"capabilities": {
"workspace": {
"workspaceEdit": {
"documentChanges": true,
"resourceOperations": [
import torch
from torchtext import data
import numpy as np
from torch.autograd import Variable
def nopeak_mask(size, opt):
np_mask = np.triu(np.ones((1, size, size)),
k=1).astype('uint8')
np_mask = Variable(torch.from_numpy(np_mask) == 0)
[Trace - 12:30:03 PM] Sending request 'textDocument/hover - (3450)'.
Params: {
"textDocument": {
"uri": "file:///home/will/DevAcademics/NLP/AISC-Workshop/asgn2+3/Transformer/Batch.py"
},
"position": {
"line": 14,
"character": 0
}
}

Naming axis in tensors (Thu Jan 10 2019)

  1. Tensor Considered Harmful

Naming axis in tensors (Thu Jan 10 2019)