An implementation of Efficientnet in PyTorch
Pytorch
B0:
call plug#begin("~/.vim/plugged") | |
" Theme | |
Plug 'arcticicestudio/nord-vim' | |
" Language Client | |
Plug 'neoclide/coc.nvim', {'branch': 'release'} | |
let g:coc_global_extensions = ['coc-emmet', 'coc-css', 'coc-html', 'coc-json', 'coc-prettier', 'coc-tsserver', 'coc-python'] | |
" TypeScript Highlighting | |
Plug 'vim-airline/vim-airline' | |
Plug 'vim-airline/vim-airline-themes' |
# IDA (disassembler) and Hex-Rays (decompiler) plugin for Apple AMX | |
# | |
# WIP research. (This was edited to add more info after someone posted it to | |
# Hacker News. Click "Revisions" to see full changes.) | |
# | |
# Copyright (c) 2020 dougallj | |
# Based on Python port of VMX intrinsics plugin: | |
# Copyright (c) 2019 w4kfu - Synacktiv |
/** | |
* Retrieve the array key corresponding to the largest element in the array. | |
* | |
* @param {Array.<number>} array Input array | |
* @return {number} Index of array element with largest value | |
*/ | |
function argMax(array) { | |
return array.map((x, i) => [x, i]).reduce((r, a) => (a[0] > r[0] ? a : r))[1]; | |
} |
#!/bin/python | |
import sys | |
import time | |
import numpy as np | |
N = int(sys.argv[1]) | |
dtype = sys.argv[2] | |
A = np.random.rand(N, N).astype(dtype) | |
B = np.random.rand(N, N).astype(dtype) |