This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import os | |
import traceback | |
import torch | |
import torchaudio | |
import requests | |
import torch.backends._nnapi.prepare | |
import torch.utils.bundled_inputs | |
import torch.utils.mobile_optimizer | |
import numpy as np |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import onnx | |
import onnxruntime as ort | |
import numpy as np | |
from onnx import numpy_helper | |
new_onnx_file_path='./model.onnx' | |
ort_sess = ort.InferenceSession(new_onnx_file_path) | |
input_ids_ts=onnx.TensorProto() | |
input_ids_ts.ParseFromString(open('test_data_set_0\input_0.pb','rb').read()) | |
input_ids = numpy_helper.to_array(input_ids_ts) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import os | |
import traceback | |
import torch | |
import torch.utils.bundled_inputs | |
import torch.utils.mobile_optimizer | |
import torch.backends._nnapi.prepare | |
import torchvision.models.quantization.mobilenet | |
from pathlib import Path |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from azure.keyvault.secrets import SecretClient | |
from azure.identity import ClientSecretCredential, DefaultAzureCredential, ManagedIdentityCredential | |
identity = DefaultAzureCredential(managed_identity_client_id='CLIENT_ID') | |
client = SecretClient("https://MY_VAULT.vault.azure.net", identity) | |
r = client.get_secret('MY_SECRET') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd gnirehtet | |
start /B gnirehtet-run.cmd | |
cd .. | |
cd scrcpy-win64-v1.23 | |
start /B scrcpy-console.bat -S -m 1024 | |
cd .. | |
cd sndcpy-v1.1 | |
start /B sndcpy.bat |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Documentation: https://circleci.com/docs/api/v2/ | |
import os | |
import sys | |
import time | |
import re | |
import shutil | |
import tempfile | |
import requests |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string> | |
#include <algorithm> | |
#include <iostream> | |
template<typename Result, typename Functor> | |
struct functor_storage : Functor | |
{ | |
functor_storage() = default; | |
functor_storage(const Functor& functor) | |
: Functor(functor) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
simple_engine | |
nn_c_port | |
jit_frontend | |
tmp_enable_scalars | |
merge_variable_tensor | |
cpp | |
ext_test_fix | |
win_py2.7 | |
docker/rocm-1.8.2 | |
always_scriptmodule |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CD $Env:Temp; | |
Invoke-WebRequest -Uri "https://www.python.org/ftp/python/3.7.9/python-3.7.9-amd64.exe" -OutFile "python-3.7.9-amd64.exe" | |
.\python-3.7.9-amd64.exe /quiet PrependPath=1 InstallAllUsers=1 TargetDir="C:\Python" Include_test=0; | |
Start-Sleep 60; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os, mimetypes, sys, uuid | |
from azure.storage.blob import BlobServiceClient, BlobClient, ContainerClient, ContentSettings | |
connect_str = "CONNECTION_STRING" | |
blob_service_client = BlobServiceClient.from_connection_string(connect_str) | |
def upload_file(f): | |
container_name = "CONTAINER" |
NewerOlder