Skip to content

Instantly share code, notes, and snippets.

View playaswd's full-sized avatar
🎯
Focusing

aha playaswd

🎯
Focusing
View GitHub Profile
@playaswd
playaswd / params.py
Created July 18, 2022 06:47
参数配置
from Arg
@playaswd
playaswd / conda.txt
Created January 28, 2020 03:06
[conda相关操作] #conda
安装
conda install tensorflow-gpu=1.15.0
@playaswd
playaswd / pip.txt
Last active January 28, 2020 03:01
[pip相关操作] #pip
安装
pip install
换源
-i https://pypi.tuna.tsinghua.edu.cn/simple
卸载
pip uninstall
@playaswd
playaswd / a.py
Created January 27, 2020 04:36
123
import os
@playaswd
playaswd / file_download.py
Last active January 27, 2020 04:18
[文件下载]
import urllib
@playaswd
playaswd / coord.py
Last active January 27, 2020 09:09
[tf中的队列处理] 123 #queue #tf
import tensorflow as tf
# 1000个4维输入向量,每个数取值为1-10之间的随机数
data = 10 * np.random.randn(1000, 4) + 1
# 1000个随机的目标值,值为0或1
target = np.random.randint(0, 2, size=1000)
# 创建Queue,队列中每一项包含一个输入数据和相应的目标值
queue = tf.FIFOQueue(capacity=50, dtypes=[tf.float32, tf.int32], shapes=[[4], []])