没有合适的资源?快使用搜索试试~ 我知道了~
首页【官方文档】TensorFlow Python API documentation.pdf
【官方文档】TensorFlow Python API documentation.pdf
5星 · 超过95%的资源 需积分: 9 93 下载量 5 浏览量
更新于2023-03-16
评论 2
收藏 3.43MB PDF 举报
【官方文档】TensorFlow Python API documentation.pdf
资源详情
资源评论
资源推荐
目录
Building Graphs ..................................................................................................................... 21
Core graph data structures ............................................................................................. 22
class tf.Graph ....................................................................................................... 22
class tf.Operation .............................................................................................. 39
class tf.Tensor ..................................................................................................... 45
Tensor types ...................................................................................................................... 51
class tf.DType ....................................................................................................... 51
tf.as_dtype(type_value) .................................................................................. 56
Utility functions .................................................................................................................. 56
tf.device(dev) ....................................................................................................... 56
tf.name_scope(name)............................................................................................ 57
tf.control_dependencies(control_inputs) ............................................ 58
tf.convert_to_tensor(value, dtype=None, name=None,
as_ref=False) .......................................................................................................... 58
tf.convert_to_tensor_or_indexed_slices(value, dtype=None,
name=None, as_ref=False) ................................................................................ 60
tf.get_default_graph() .................................................................................... 60
tf.reset_default_graph() ................................................................................ 61
tf.import_graph_def(graph_def, input_map=None,
return_elements=None, name=None, op_dict=None) ........................... 61
tf.load_op_library(library_filename) ................................................... 63
Graph collections .............................................................................................................. 64
tf.add_to_collection(name, value) .......................................................... 64
tf.get_collection(key, scope=None) ........................................................ 64
class tf.GraphKeys .............................................................................................. 65
Defining new operations .................................................................................................. 66
class tf.RegisterGradient ............................................................................. 66
tf.NoGradient(op_type) .................................................................................... 67
class tf.RegisterShape .................................................................................... 68
class tf.TensorShape ......................................................................................... 69
class tf.Dimension .............................................................................................. 77
tf.op_scope(values, name, default_name=None) ................................ 79
tf.get_seed(op_seed) ......................................................................................... 80
For libraries building on TensorFlow .............................................................................. 81
tf.register_tensor_conversion_function(base_type,
conversion_func, priority=100) ................................................................. 81
Other Functions and Classes.......................................................................................... 82
class tf.bytes ....................................................................................................... 82
Constants, Sequences, and Random Values .................................................................. 82
Constant Value Tensors .................................................................................................. 83
tf.zeros(shape, dtype=tf.float32, name=None) ................................ 83
tf.zeros_like(tensor, dtype=None, name=None) ................................ 84
tf.ones(shape, dtype=tf.float32, name=None) .................................. 85
tf.ones_like(tensor, dtype=None, name=None) .................................. 86
tf.fill(dims, value, name=None) ............................................................... 87
tf.constant(value, dtype=None, shape=None, name='Const') ... 87
Sequences ......................................................................................................................... 89
tf.linspace(start, stop, num, name=None) ......................................... 89
tf.range(start, limit=None, delta=1, name='range') ................. 90
Random Tensors .............................................................................................................. 91
Examples: ...................................................................................................................... 91
tf.random_normal(shape, mean=0.0, stddev=1.0,
dtype=tf.float32, seed=None, name=None) ............................................ 92
tf.truncated_normal(shape, mean=0.0, stddev=1.0,
dtype=tf.float32, seed=None, name=None) ............................................ 93
tf.random_uniform(shape, minval=0, maxval=None,
dtype=tf.float32, seed=None, name=None) ............................................ 94
tf.random_shuffle(value, seed=None, name=None) ........................... 95
tf.random_crop(value, size, seed=None, name=None) .................... 96
tf.set_random_seed(seed) ................................................................................ 97
Variables ................................................................................................................................ 99
Variables .......................................................................................................................... 100
class tf.Variable .............................................................................................. 100
Variable helper functions ............................................................................................... 111
tf.all_variables() ............................................................................................ 112
tf.trainable_variables() .............................................................................. 112
tf.moving_average_variables() .................................................................. 113
tf.initialize_all_variables() .................................................................. 113
tf.initialize_variables(var_list, name='init') ......................... 113
tf.assert_variables_initialized(var_list=None) ......................... 114
Saving and Restoring Variables ................................................................................... 115
class tf.train.Saver ....................................................................................... 115
tf.train.latest_checkpoint(checkpoint_dir,
latest_filename=None) ..................................................................................... 123
tf.train.get_checkpoint_state(checkpoint_dir,
latest_filename=None) ..................................................................................... 124
tf.train.update_checkpoint_state(save_dir,
model_checkpoint_path, all_model_checkpoint_paths=None,
latest_filename=None) ..................................................................................... 125
Sharing Variables ........................................................................................................... 125
tf.get_variable(name, shape=None, dtype=tf.float32,
initializer=None, trainable=True, collections=None) ............. 125
tf.get_variable_scope() ................................................................................ 127
tf.make_template(name_, func_, **kwargs) ....................................... 127
tf.variable_op_scope(values, name, default_name,
initializer=None) .............................................................................................. 130
tf.variable_scope(name_or_scope, reuse=None,
initializer=None) .............................................................................................. 131
tf.constant_initializer(value=0.0, dtype=tf.float32) ........... 133
tf.random_normal_initializer(mean=0.0, stddev=1.0,
seed=None, dtype=tf.float32) .................................................................... 133
tf.truncated_normal_initializer(mean=0.0, stddev=1.0,
seed=None, dtype=tf.float32) .................................................................... 134
tf.random_uniform_initializer(minval=0.0, maxval=1.0,
seed=None, dtype=tf.float32) .................................................................... 135
tf.uniform_unit_scaling_initializer(factor=1.0, seed=None,
dtype=tf.float32) .............................................................................................. 136
tf.zeros_initializer(shape, dtype=tf.float32) ........................... 137
Sparse Variable Updates ............................................................................................... 137
tf.scatter_update(ref, indices, updates, use_locking=None,
name=None) ............................................................................................................... 138
tf.scatter_add(ref, indices, updates, use_locking=None,
name=None) ............................................................................................................... 140
tf.scatter_sub(ref, indices, updates, use_locking=None,
name=None) ............................................................................................................... 142
tf.sparse_mask(a, mask_indices, name=None)................................... 144
class tf.IndexedSlices .................................................................................. 145
Tensor Transformations ..................................................................................................... 148
Casting ............................................................................................................................. 149
tf.string_to_number(string_tensor, out_type=None,
name=None) ............................................................................................................... 149
tf.to_double(x, name='ToDouble') .......................................................... 150
tf.to_float(x, name='ToFloat') ............................................................... 150
tf.to_bfloat16(x, name='ToBFloat16') ................................................. 151
tf.to_int32(x, name='ToInt32') ............................................................... 152
tf.to_int64(x, name='ToInt64') ............................................................... 152
tf.cast(x, dtype, name=None) .................................................................... 153
Shapes and Shaping ...................................................................................................... 154
tf.shape(input, name=None) ......................................................................... 154
tf.size(input, name=None) ........................................................................... 155
tf.rank(input, name=None) ........................................................................... 155
tf.reshape(tensor, shape, name=None) ................................................. 156
tf.squeeze(input, squeeze_dims=None, name=None) ....................... 158
tf.expand_dims(input, dim, name=None) .............................................. 159
Slicing and Joining .......................................................................................................... 160
tf.slice(input_, begin, size, name=None) ....................................... 160
tf.split(split_dim, num_split, value, name='split') ............. 162
tf.tile(input, multiples, name=None) ................................................. 163
tf.pad(input, paddings, name=None) ...................................................... 163
tf.concat(concat_dim, values, name='concat') .............................. 165
tf.pack(values, name='pack') .................................................................... 166
tf.unpack(value, num=None, name='unpack') ..................................... 167
tf.reverse_sequence(input, seq_lengths, seq_dim,
batch_dim=None, name=None) ......................................................................... 168
tf.reverse(tensor, dims, name=None) ................................................... 170
tf.transpose(a, perm=None, name='transpose') .............................. 171
tf.space_to_depth(input, block_size, name=None) ....................... 173
tf.depth_to_space(input, block_size, name=None) ....................... 175
tf.gather(params, indices, validate_indices=None,
name=None) ............................................................................................................... 177
tf.dynamic_partition(data, partitions, num_partitions,
name=None) ............................................................................................................... 178
tf.dynamic_stitch(indices, data, name=None) ................................ 181
tf.boolean_mask(tensor, mask, name='boolean_mask') ............... 182
Other Functions and Classes........................................................................................ 184
tf.shape_n(input, name=None) .................................................................... 184
tf.unique_with_counts(x, name=None) ................................................... 184
Math ...................................................................................................................................... 185
Arithmetic Operators ...................................................................................................... 188
tf.add(x, y, name=None) ................................................................................ 188
tf.sub(x, y, name=None) ................................................................................ 189
tf.mul(x, y, name=None) ................................................................................ 190
tf.div(x, y, name=None) ................................................................................ 190
tf.truediv(x, y, name=None) ...................................................................... 191
tf.floordiv(x, y, name=None) .................................................................... 192
tf.mod(x, y, name=None) ................................................................................ 193
tf.cross(a, b, name=None) ........................................................................... 193
Basic Math Functions ..................................................................................................... 194
tf.add_n(inputs, name=None) ...................................................................... 194
tf.abs(x, name=None) ....................................................................................... 195
tf.neg(x, name=None) ....................................................................................... 196
tf.sign(x, name=None) ..................................................................................... 196
tf.inv(x, name=None) ....................................................................................... 197
剩余544页未读,继续阅读
寒沧
- 粉丝: 269
- 资源: 162
上传资源 快速赚钱
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- 2023年中国辣条食品行业创新及消费需求洞察报告.pptx
- 2023年半导体行业20强品牌.pptx
- 2023年全球电力行业评论.pptx
- 2023年全球网络安全现状-劳动力资源和网络运营的全球发展新态势.pptx
- 毕业设计-基于单片机的液体密度检测系统设计.doc
- 家用清扫机器人设计.doc
- 基于VB+数据库SQL的教师信息管理系统设计与实现 计算机专业设计范文模板参考资料.pdf
- 官塘驿林场林防火(资源监管)“空天地人”四位一体监测系统方案.doc
- 基于专利语义表征的技术预见方法及其应用.docx
- 浅谈电子商务的现状及发展趋势学习总结.doc
- 基于单片机的智能仓库温湿度控制系统 (2).pdf
- 基于SSM框架知识产权管理系统 (2).pdf
- 9年终工作总结新年计划PPT模板.pptx
- Hytera海能达CH04L01 说明书.pdf
- 数据中心运维操作标准及流程.pdf
- 报告模板 -成本分析与报告培训之三.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论3