tensorflow学习
sinat_34080511
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
tensorflow模型转化为pb格式
def serving_input_fn(): label_ids = tf.placeholder(tf.int32, [None, 3], name='label_ids') input_ids = tf.placeholder(tf.int32, [None, 200], name='input_ids') input_mask = tf.placeholder(tf.int32, [None, 200], name='input_mask') segment_...原创 2021-11-21 16:37:29 · 1692 阅读 · 0 评论 -
pytorch模型转换成tf
参考:pytorch模型转tensorflow的pb文件 - 知乎pip install tensorflow-gpu==2.2.0 -i https://pypi.tuna.tsinghua.edu.cn/simplepip uninstall onnx-tf==1.6tensorflow2.2.0+onnx-tf1.6生成单个pb文件,原创 2021-11-16 14:34:10 · 440 阅读 · 0 评论 -
pytorch安装
1. 利用清华镜像源安装添加镜像源conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/conda confi...原创 2020-01-07 10:46:03 · 505 阅读 · 1 评论 -
horovod安装
1.安装nccl查看cuda版本cat /usr/local/cuda/version.txt,从https://developer.nvidia.com/nccl/nccl-download安装对应的包sudo yum updatesudo yum install libnccl-2.5.6-1+cuda10.0 libnccl-devel-2.5.6-1+cuda10.0 libnccl...原创 2019-12-20 10:51:35 · 1995 阅读 · 0 评论 -
CNN文本分类
Learning to Compose Neural Networks for Question AnsweringQuestion Answering on Knowledge Bases and Text using Universal Schema and Memory Networks》Improved Representation Learning for Question Answe原创 2017-06-09 21:06:10 · 354 阅读 · 0 评论 -
tensorflow docker国内镜像
https://hub.daocloud.io/repos/4e686d90-5e24-40b1-8bc6-8616b82f8143原创 2019-03-05 17:11:20 · 2756 阅读 · 0 评论 -
pytorch学习
安装:pip install torch torchvision -i https://pypi.tuna.tsinghua.edu.cn/simple运算:矩阵乘矩阵:A*B/torch.mul(A, B)/ A.mul(B) 矩阵乘向量:torch.mv(A, b)或者b = torch.rand((4,1)) 向量点乘:torch.dot(a, b)...原创 2019-04-18 12:59:41 · 272 阅读 · 0 评论 -
tensorflow
模型编写三部曲:tensor,operator,session 使用图 (graph) 来表示计算任务,图中的节点被称为op,一个op获得0个或多个Tensor,每个Tensor是一个类型化的多维数组,使用 tensor 表示数据。 在会话 (Session) 的上下文 (context) 中执行图. 通过 变量 (Variable) 维护状态。 使用 feed 和 fetch 可以为...原创 2017-06-05 11:47:13 · 331 阅读 · 0 评论
分享