
TensorFlow
shchojj
这个作者很懒,什么都没留下…
展开
-
2D版的MIND
import tensorflow as tfimport numpy as npimport tensorflow_addons as tfaimport SimpleITK as sitkprint(tf.__version__)import tensorflow as tfimport matplotlib.pyplot as pltgpus = tf.config.experimental.list_physical_devices('GPU')tf.config.experim.转载 2020-08-31 10:25:04 · 868 阅读 · 6 评论 -
tensorflow2.0 +Keras中间层输出
转自:https://www.jb51.net/article/187172.htm#新建一个打印层。class PrintLayer(tf.keras.layers.Layer): def __init__(self, **kwargs): #初始化方法,不须改变 super(PrintLayer, self).__init__(**kwargs) def call(self, x): # 调用该层时执行的方法 x = tf.co翻译 2020-06-10 10:25:37 · 1624 阅读 · 3 评论 -
显存不够时,如何利用GPU训练数据
参考:https://github.com/openai/gradient-checkpointing https://www.jqr.com/article/000537 https://www.infoq.cn/article/fRN0eVBNedTIrm5_Ps1M使用gradient-checkpointing来节省存储 ...翻译 2019-06-14 11:27:45 · 6486 阅读 · 0 评论 -
TensorFlow Large Model Support:TensorFlow中用于大模型支持(lms)的图形编辑库
参考:https://github.com/IBM/tensorflow-large-model-support该库提供了一种训练大模型的方法,这些模型往往是GPU显存不足,它采用用户自定义的图,并自动添加swap-in和swap-out节点,用于将tensors从GPUs传输到主机设备,反之亦然。计算图是静态修改的。因此,它需要在回话开始前就完成。IBM PowerAI 1.6包含比gi...转载 2019-06-18 10:35:08 · 2163 阅读 · 0 评论 -
spatial transformer network
转载 2019-07-01 08:53:23 · 322 阅读 · 0 评论