国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
----- BEGIN LICENSE ----- | |
Member J2TeaM | |
Single User License | |
EA7E-1011316 | |
D7DA350E 1B8B0760 972F8B60 F3E64036 | |
B9B4E234 F356F38F 0AD1E3B7 0E9C5FAD | |
FA0A2ABE 25F65BD8 D51458E5 3923CE80 | |
87428428 79079A01 AA69F319 A1AF29A4 | |
A684C2DC 0B1583D4 19CBD290 217618CD |
国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
def conv2d(inputs, filter, strides, name='conv2d'): | |
k = tf.get_variable('W', filter, initializer=xavier_initializer_conv2d()) | |
b = tf.get_variable('b', filter[-1], initializer=tf.constant_initializer(0.0)) | |
conv = tf.nn.conv2d(inputs, k, strides, 'SAME') | |
bias_add = tf.nn.bias_add(conv, b) | |
return tf.nn.relu(bias_add, name=name) | |
def vision_model(frames, n_frames): | |
with tf.variable_scope('Conv1') as scope: |
@echo off | |
SET st3Path=C:\Program Files\Sublime Text 3\sublime_text.exe | |
rem add it for folders | |
@reg add "HKEY_CLASSES_ROOT\Directory\shell\Open with Sublime Text" /t REG_SZ /v "" /d "Open with Sublime Text" /f | |
@reg add "HKEY_CLASSES_ROOT\Directory\shell\Open with Sublime Text" /t REG_EXPAND_SZ /v "Icon" /d "%st3Path%,0" /f | |
@reg add "HKEY_CLASSES_ROOT\Directory\shell\Open with Sublime Text\command" /t REG_SZ /v "" /d "%st3Path% \"%%1\"" /f | |
pause |
class KeyAwareDefaultDict(dict): | |
""" | |
Like a standard library defaultdict, but pass the key | |
to the default factory. | |
""" | |
def __init__(self, default_factory=None): | |
self.default_factory = default_factory | |
def __getitem__(self, key): | |
if key not in self and self.default_factory is not None: |