Skip to content

Instantly share code, notes, and snippets.

@YunEr-Wang
YunEr-Wang / weight_init.py
Created October 8, 2019 02:01 — forked from jeasinema/weight_init.py
A simple script for parameter initialization for PyTorch
#!/usr/bin/env python
# -*- coding:UTF-8 -*-
import torch
import torch.nn as nn
import torch.nn.init as init
def weight_init(m):
'''
@YunEr-Wang
YunEr-Wang / tasker_forward_SMS.js
Created January 13, 2021 06:43 — forked from IcedMango/tasker_forward_SMS.js
How to use tasker forward SMS to telegram
//bot秘钥
var apiKey = "";
//请求链接
var apiUrl = "api.telegram.org";
//会话ID
var chatId = "";
//发件人名称
var senderName = global('SMSRN');
if (senderName.match(/\d*/g)[0].length > 0) {
senderName = "";