2021年4月7日

tensorflow 和cuda对应关系

摘要: VersionPython versionCompilerBuild tools tensorflow-1.11.0 2.7, 3.3-3.6 GCC 4.8 Bazel 0.15.0 tensorflow-1.10.0 2.7, 3.3-3.6 GCC 4.8 Bazel 0.15.0 tenso 阅读全文

posted @ 2021-04-07 20:58 cltt 阅读(3898) 评论(0) 推荐(0) 编辑

apt-get update 升级错误

摘要: W: GPG error: http://mirrors.cloud.aliyuncs.com/ubuntu xenial-backports InRelease: Could not execute 'apt-key' to verify signature (is gnupg installed 阅读全文

posted @ 2021-04-07 20:56 cltt 阅读(555) 评论(0) 推荐(0) 编辑

修改模型参数名

摘要: import torch import torch.nn as nn import torch.nn.functional as F from torchvision import models from model import TTSR from option import args # mod 阅读全文

posted @ 2021-04-07 20:53 cltt 阅读(306) 评论(0) 推荐(0) 编辑

tensor转化为ndarray

摘要: # -*- coding: utf-8 -*- import tensorflow as tf # 创建张量 t = tf.constant([1, 2, 3, 4], tf.float32) # 创建会话 session = tf.Session() # 张量转化为ndarray array = 阅读全文

posted @ 2021-04-07 20:49 cltt 阅读(983) 评论(0) 推荐(0) 编辑

从float64到uint8的有损转换

摘要: 从float64(x)范围[0,1]到uint8(y)范围[0,255]的转换 y = (x*255).astype(np.uint8)) 阅读全文

posted @ 2021-04-07 20:48 cltt 阅读(769) 评论(0) 推荐(0) 编辑

导航