Skip to content

Instantly share code, notes, and snippets.

View gist:1d206f4207c4cbf0549806d52f8da2e9
Setting OMP_NUM_THREADS environment variable for each process to be 1 in default, to avoid your system being overloaded, please further tune the variable for optimal performance in your application as needed.
(37131) -- Epoch 0 --
(37131) -- DistributedDataParallel --
(37130) -- Epoch 0 --
(37130) -- DistributedDataParallel --
(37131) device: cuda:1, forward size: torch.Size([4, 2])
(37130) device: cuda:0, forward size: torch.Size([4, 2])
tensor([[-0.0597, -0.4675],
View gist:b2d9c8348104317d0f5cee327f3c00cf
(36872) -- Epoch 0 --
(36872) -- Plain --
(36872) device: cuda:0, forward size: torch.Size([4, 2])
tensor([[ 0.0539, 0.6684],
[-0.3144, -0.4963],
[-0.3424, -1.4020],
[ 1.4635, -0.7477]], device='cuda:0')
Parameter containing:
tensor([[-0.6661, -0.1387],
[-0.3396, -0.1886]], device='cuda:0', requires_grad=True)
View gist:ea8008b52901ab74da6f860002403270
This file has been truncated, but you can view the full file.
title = "Word representations: a simple and general method for
semi-supervised learning",
author = "Turian, Joseph and Ratinov, Lev and Bengio, Yoshua",
booktitle = "Proceedings of the 48th annual meeting of the association for
computational linguistics",
abstract = "If we take an existing supervised NLP sys- tem, a simple and
general way to improve accuracy is to use unsupervised word
representations as extra word features. We evaluate Brown
View gist:bc3453c4896459c5e4a8b131096732b7
[Trace - 09:28:29 PM] Sending request 'initialize - (30)'.
Params: {
"processId": null,
"rootPath": "/Users/user/git/tp/projects/knowledge_graph",
"clientInfo": {
"name": "emacs",
"version": "GNU Emacs 27.0.91 (build 1, x86_64-apple-darwin19.5.0, Carbon Version 162 AppKit 1894.5)\n of 2020-06-14"
"rootUri": "file:///Users/user/git/tp/projects/knowledge_graph",
View init-matlab.el
(use-package matlab
:ensure matlab-mode
:mode ("\\.m\\'" . matlab-mode)
(setq matlab-shell-command-switches '("-nodesktop" "-nosplash")
matlab-auto-fill nil
matlab-comment-region-s "% "
matlab-case-level '(4 . 4)
matlab-indent-function-body t
View emacs-keytable.el
(defun emacs-keytable (arg)
"Print all key bindings map in a org buffer.then use css and convert to html,print A4 page"
(interactive "sEnter a modifier string:")
(with-output-to-temp-buffer "**"
(let* ((i 0)
(keys (list "a" "b" "c" "d" "e" "f" "g" "h" "i" "j" "k" "l" "m"
"n" "o" "p" "q" "r" "s" "t" "u" "v" "w" "x" "y" "z"
"<return>" "<down>" "<up>" "<right>" "<left>"
"<home>" "<end>" "<f1>" "<f2>" "<f3>" "<f4>" "<f5>"
"<f6>" "<f7>" "<f8>" "<f9>" "<f10>" "<f11>" "<f12>"