Skip to content

Instantly share code, notes, and snippets.

@magic282
magic282 / About the CNN Daily Mail Dataset
Last active July 5, 2019 09:05
About the CNN Daily Mail Dataset
The format of files:
1. File train.txt.src is the input document. Each line contains several tokenized sentences delimited by ##SENT## of a document.
2. File train.txt.tgt is the summary of document. Each line contains several tokenized summaries delimited by ##SENT## of the corresponding document.
3. File train.rouge_bigram_F1.oracle.F1mmrTrue.regGain is the TSV training label and ROUGE F1 score file.
@magic282
magic282 / test
Last active June 24, 2020 02:55
PyTorch Issue
import torch
from torch import nn
from torch.autograd import Variable as Var
from torch.optim import SGD
from torch.nn.utils.rnn import pad_packed_sequence as unpack
from torch.nn.utils.rnn import pack_padded_sequence as pack
import random
@magic282
magic282 / cuda9
Last active December 5, 2017 11:39
peterjc123/pytorch-scripts
D:\pytorch\pytorch-scripts>cuda9
D:\pytorch\pytorch-scripts>REM @echo off
D:\pytorch\pytorch-scripts>IF NOT EXIST "setup.py" IF NOT EXIST "pytorch" (
call internal\clone.bat
IF ERRORLEVEL 1 goto eof
)
@magic282
magic282 / 3rd try
Last active November 13, 2017 08:25
pytorch build log
**********************************************************************
** Visual Studio 2017 Developer Command Prompt v15.4.3
** Copyright (c) 2017 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x86_x64'
C:\Users\v-qizhou\source>d:
D:\>cd pytorch\pytorch
@magic282
magic282 / mxBuildLog.txt
Created February 4, 2017 05:42
mxnet build log
1>------ Build started: Project: ZERO_CHECK, Configuration: Debug x64 ------
1> Checking Build System
1> CMake does not need to re-run because D:/mxnet/build/CMakeFiles/generate.stamp is up-to-date.
1> CMake does not need to re-run because D:/mxnet/build/dmlc-core/CMakeFiles/generate.stamp is up-to-date.
1> CMake does not need to re-run because D:/mxnet/build/tests/cpp/CMakeFiles/generate.stamp is up-to-date.
1> CMake does not need to re-run because D:/mxnet/build/example/image-classification/predict-cpp/CMakeFiles/generate.stamp is up-to-date.
2>------ Build started: Project: dmlccore, Configuration: Debug x64 ------
3>------ Skipped Build: Project: dmlccore_lint, Configuration: Debug x64 ------
3>Project not selected to build for this solution configuration
4>------ Skipped Build: Project: mxnet_lint, Configuration: Debug x64 ------
#!/bin/bash
function installVPN5(){
yum -y install make libpcap iptables gcc-c++ logrotate tar cpio perl pam tcp_wrappers
rpm -ivh dkms-2.0.17.5-1.noarch.rpm
rpm -ivh kernel_ppp_mppe-1.0.2-3dkms.noarch.rpm
rpm -qa kernel_ppp_mppe
rpm -Uvh ppp-2.4.4-9.0.rhel5.i386.rpm
rpm -ivh pptpd-1.3.4-1.rhel5.1.i386.rpm