腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
首页
学习
活动
专区
工具
TVP
最新优惠活动
返回腾讯云官网
JNing的专栏
专栏作者
举报
694
文章
966050
阅读量
50
订阅数
订阅专栏
申请加入专栏
全部文章
其他
编程算法
python
深度学习
ide
api
tensorflow
ubuntu
apt-get
go
bash
linux
numpy
git
opencv
存储
http
图像处理
开源
神经网络
anaconda
windows
grep
pytorch
kernel
机器学习
卷积神经网络
数据结构
nat
数据库
人工智能
shell
erp
迁移学习
.net
ssh
gui
network
scala
xml
arm
缓存
图像识别
dns
安全
mac
mask
path
ios
node.js
html
access
unix
bash 指令
渲染
express
容器
游戏
网络安全
hive
yum
asp
ftp
二叉树
markdown
nest
aggregation
backbone
block
config
image
map
mean
mobile
model
parsing
time
动态规划
快捷键
配置
人脸识别
NLP 服务
自动驾驶
mac os
iphone
c 语言
c++
php
perl
css
json
硬件开发
makefile
云数据库 SQL Server
django
flask
nginx
spring
tornado
mapreduce
黑石物理服务器
批量计算
文件存储
日志服务
文字识别
腾讯云测试服务
vr 视频解决方案
分布式
爬虫
hadoop
强化学习
面向对象编程
监督学习
unity
单元测试
gcc
ntp
微信
机器人
数据分析
数据处理
https
图像分析
alignment
ansible
average
axes
build
case
com
dataset
device
dp
edge
effects
error
field
file
frames
freeze
gd
global
gpu
graph
heatmap
hostname
intersection
iterm2
layer
leetcode
ls
min
module
padding
pid
pip
pyramid
readonly
root
scale
screen
shift
shuffle
size
spatial
state
std
stream
tar
tensor
tmux
tools
torch
union
view
编码
编译
程序
多进程
进程
模型
排序
算法
网络
性能
压缩
优化
终端
搜索文章
搜索
搜索
关闭
tensorflow编程: Running Graphs
tensorflow
api
A class for running TensorFlow operations. 这是一个类,执行 tensorflow 中的 op 。它里面定义了 run()、extend()、close()、__init__() 等方法。
JNingWei
2018-09-28
480
0
Tensorflow版本变动细节 & 自动移植代码到新版本下
tensorflow
api
查看TensorFlow版本变动的具体细节 TensorFlow 1.0 版本 API 变动汇总 ---- 自动将代码移植到新版本下 自动将代码移植到 1.0 版本: tf_upgrade.py --infile foo.py --outfile foo-upgraded.py ---- ----
JNingWei
2018-09-28
428
0
Python: shutil模块 常用api速查表
python
api
api args annotation shutil.copy (src, dst) 将文件src复制到文件或目录dst。 shutil.copytree (src, dst, symlinks=False, ignore=None) 以递归方式复制以src为根的整个目录树。目标目录dst必须不存在;它和父目录将一起创建。 shutil.rmtree (path[ ,ignore_errors[, onerror]]) 删除非空文件夹树。 shutil.move (src, dst) 以递归方式移动文
JNingWei
2018-09-28
616
0
python: os 库
python
api
shell
access
api annotation os.listdir() 列出当前目录下的所有文件和文件夹(包括被隐藏的) os.system() 运行shell命令(接收命令行列出当前目录下的所有文件和文件夹参数) os.sep() 更改操作系统中的路径分隔符 os.getcwd() 获取当前路径(中间会自动添上一个路径分隔符) os.walk 循环遍历目录,返回tuple表,表中每一个tuple包含该层文件、文件夹及该层父节点 os.path.isfile() 是否是文件 os.path.isdir() 是否是文件
JNingWei
2018-09-28
1.6K
0
Python: strip() & split()
python
api
Syntax function annotations split() 剔除切口单元 并返回 断开的list(如果有 整段连续的 切口单元,则每个切口单元都剔除一次,连续的切口单元之间留下 """") strip() 对字符串 末尾 剔除 并返回 完整的 字符串 Test Test 1 string = 'Nanjing-is--the---capital----of-----Jiangshu------' print string.split() print string.split('-')
JNingWei
2018-09-28
1.6K
0
opencv: 形态学 转换(图示+源码)
opencv
api
kernel
numpy
windows
OpenCV中的形态学转换操作有七种:腐蚀,膨胀,开运算,闭运算,形态学梯度,礼帽,黑帽。
JNingWei
2018-09-28
1.1K
0
tensorflow: 类numpy的api映射表
tensorflow
numpy
api
nat
Annotations tensorflow api numpy api 建立全零张量 tf.zeros(shape=(H, W), dtype=tf.float32) np.zeros(shape=(H, W), dtype=np.float32) 建立全一张量 tf.ones(shape=(H, W), dtype=tf.float32) np.ones(shape=(H, W), dtype=np.float32) 元素乘法 tf.mul(A, B) A * B 矩阵乘法 tf.matmul(
JNingWei
2018-09-28
739
0
numpy: 常用api速查
numpy
api
api(for list) api(for ndarray) annotations np.sum np.ndarray.sum 求全部元素的总和 np.sum( ,axis=) np.ndarray.sum( ,axis=) 对指定轴方向上分别求和 np.mean np.ndarray.mean 求平均 np.array - 创建一个 ndarray ,它本身不是一个类 - np.ndarray 本身是一个类;可以用来创建数组,但不推荐 np.unique np.ndarray.unique 数组
JNingWei
2018-09-28
1K
0
tensorflow编程: Building Graphs
tensorflow
api
python
每次都必须要指定一个graph作为as_default,并只能在该graph中进行一切操作。
JNingWei
2018-09-28
786
0
python: enumerate
python
api
spring
API enumerate(sequence, [start=0]) Args sequence – 一个序列、迭代器或其他支持迭代对象。 start – 下标起始位置 Returns 返回 enumerate(枚举) 对象。 示例 将 enumerate(枚举)对象 存在一个list中返回: seq = ['Spring', 'Summer', 'Fall', 'Winter'] print list(enumerate(seq)) [(0, 'Spring'), (1, 'Summ
JNingWei
2018-09-28
521
0
tensorflow: variable的值 与 variable.read_value()的值 区别
tensorflow
api
查看 tensorflow api manual 时,看到关于 variable.read_value() 的注解如图:
JNingWei
2018-09-28
1.4K
0
tensorflow: 为什么 tensor型参数 可以接受 非tensor型输入
tensorflow
api
但是 manual 里面已经写明了 tf.multiply函数 的 参数项输入 必须要是 tensor型 的:
JNingWei
2018-09-28
519
0
python: delattr函数
python
api
API delattr(object, name) 删除 object对象 中的 name属性 。 实验代码 class Person: def __init__(self, name, age): self.name = name self.age = age tom = Person("Tom", 35) print dir(tom) delattr(tom, "age") print dir(tom) ['__doc__', '__init__'
JNingWei
2018-09-28
266
0
python: copy库 与 list拷贝
python
api
API API Annotations Details copy.copy(list) 浅拷贝 只拷贝父对象,不会拷贝子对象 copy.deepcopy(list) 深拷贝 拷贝父对象及子对象 Test # coding=utf-8 lst = [10, ['A']] # 指针引用: 不拷贝 a = lst assert a is lst # 浅拷贝: 只拷贝 父对象,不会拷贝 子对象 import copy b = copy.copy(lst) assert b is not lst and
JNingWei
2018-09-28
934
0
python: pop函数
python
api
API list.pop(index=-1) 指定 索引位置 删除 。 index 参数项 默认值 为 -1 。 Test list = [10, 20, 30, 40] assert list.pop() == 40 and list.pop(1) == 20
JNingWei
2018-09-28
1.2K
0
python: join函数
python
api
API str.join(sequence) 将 list 中的 元素 用 指定缝合方式 拼接 在一起。 Args Annotations str 填充在 拼接处 的 字符串 sequence 被连接 的 元素list 实验代码 seq = ['Beijing', 'Shanghai', 'Nanjing'] print ''.join(seq) print ' '.join(seq) print '-'.join(seq) 打印结果: BeijingShanghaiNanjing Beiji
JNingWei
2018-09-28
883
0
python: count函数
python
api
API string 中 某字符 的次数 str.count(sub, start= 0,end=len(string)) Args Annotations sub 搜索的子字符串 start 字符串开始搜索的位置。默认为第一个字符,第一个字符索引值为0。 end 字符串中结束搜索的位置。字符中第一个字符的索引为 0。默认为字符串的最后一个位置。 list 中 某元素 的次数 list.count(obj) Args Annotations obj 搜索的list 实验代码 string
JNingWei
2018-09-28
869
0
python: int函数
python
api
API int(x=0, base=10) 地板整数。 Args: x: base为空时,输入类型为 数字;base存在时,输入类型为 字符串 。 base: 进制数,默认十进制。 实验代码 # coding=utf-8 # 不带base参数时 assert int() == 0 assert int(10) == 10 assert int(10.7) == 10 # 带base参数时,10转为以 字符串 的形式进行输入,并指定了 进制 assert int('10',
JNingWei
2018-09-28
555
0
python: set函数
python
api
API set([iterable]) set() 函数创建一个 集合 。 Note: 集合中元素 区分大小写,不重复,且按字母表顺序排列。 直接通过len()可得到set的元素数量,无需中途转换成list型。 实验代码 # coding=utf-8 beijing = set('Beijing') nanjing = set('Nanjing') # 重复的被删除,并按字母表顺序排列 print beijing, nanjing # 交集 print beijing & nanjing #
JNingWei
2018-09-28
685
0
python: bisect库
python
api
介绍 用法 这个模块只有几个函数。 一旦决定使用二分搜索时,立马要想到使用这个模块。 区分 API 父类 定义 是否插入 返回值类型 bisect.bisect_left(L, x) bisect 在L中 查找 x左侧的位置,不存在时返回本该在的位置 否 有 bisect.bisect_right(L, x) bisect 在L中 查找 x右侧的位置,不存在时返回本该在的位置 否 有 bisect.insort_left(L, x=10) insort 将x 按L顺序 插入 到列表L中,x存在时插入在左侧
JNingWei
2018-09-28
773
0
点击加载更多
社区活动
Python精品学习库
代码在线跑,知识轻松学
点击查看
热点技术征文第五期
新风口Sora来袭,普通人该如何把握机会?
立即参加
博客搬家 | 分享价值百万资源包
自行/邀约他人一键搬运博客,速成社区影响力并领取好礼
立即体验
技术创作特训营·精选知识专栏
往期视频·干货材料·成员作品·最新动态
立即查看
领券
问题归档
专栏文章
快讯文章归档
关键词归档
开发者手册归档
开发者手册 Section 归档