I hereby claim:
- I am mihonarium on github.
- I am mihonarium (https://keybase.io/mihonarium) on keybase.
- I have a public key ASDS_NKvBMDYetF7UgN430JNqUYoDWHMEAtEGzxSmVg2NQo
To claim this, I am signing this object:
package main | |
import ( | |
"crypto/sha256" | |
"encoding/hex" | |
"fmt" | |
"log" | |
"sync" | |
) |
from tqdm import tqdm | |
def top_1_acc(OV_circuit): | |
return ((OV_circuit.argmax(dim=0) == t.arange(0, OV_circuit.size(-1)).to(device)).sum() / OV_circuit.size(-1)).item() | |
def top_5_acc(OV_circuit): | |
return ((OV_circuit.topk(5, dim=0)[1] == t.arange(0, OV_circuit.size(-1)).to(device)).sum() / OV_circuit.size(-1)).item() | |
W_U = model.unembed.W_U.to(device) | |
W_E = model.embed.W_E.to(device) |
package main | |
import ( | |
"fmt" | |
"github.com/nguyenthenguyen/docx" | |
"net/http" | |
"os" | |
"strings" | |
) |
package main | |
import ( | |
"fmt" | |
"sync" | |
"time" | |
) | |
type BetterObject struct { | |
ID int |
I hereby claim:
To claim this, I am signing this object:
<?php | |
include 'bot_functions.php'; | |
function downloadAudioFile($audiolink) | |
{ | |
$ext = 'mp3'; | |
$saveFile = 'tmp/'.md5(microtime(true)).'.'.$ext; | |
file_put_contents("$saveFile", fopen("$audiolink", 'r')); | |
return $saveFile; |
<?php | |
function echo_ok() { | |
ob_start(); | |
echo 'ok'; | |
$length = ob_get_length(); | |
header('Connection: close'); | |
header("Content-Length: " . $length); | |
header("Content-Encoding: none"); |
<?php | |
include('include/bot_fs.php'); | |
include('include/vk_fs.php'); | |
$confirmation_token = '/* скрыто */'; | |
$token = '/* скрыто */'; | |
$data = json_decode(file_get_contents('php://input')); | |
$group_id = $data->group_id; |