tensorflow--张量变换--汇总

官网链接:https://tensorflow.google.cn/api_guides/python/array_ops#Shapes_and_Shaping

一、Casting

TensorFlow提供了一些可以用来在图表中绘制张量数据类型的操作。

  • tf.string_to_number
  • tf.to_double
  • tf.to_float
  • tf.to_bfloat16
  • tf.to_int32
  • tf.to_int64
  • tf.cast
  • tf.bitcast
  • tf.saturate_cast

二、Shapes and Shaping

TensorFlow提供了几种操作,可以用来确定张量的形状,并改变张量的形状。

三、Slicing and Joining

TensorFlow提供了一些操作来分割或提取张量的部分,或者将多个张量连接在一起。

  • [tf.slice
  • [tf.strided_slice
  • [tf.split
  • [tf.tile
  • tf.pad
  • tf.concat
  • [tf.stack
  • [tf.parallel_stack
  • [tf.unstack
  • [tf.reverse_sequence
  • [tf.reverse
  • [tf.reverse_v2
  • [tf.transpose
  • [tf.extract_image_patches
  • [tf.space_to_batch_nd
  • [tf.space_to_batch
  • [tf.required_space_to_batch_paddings
  • [tf.batch_to_space_nd
  • [tf.batch_to_space
  • [tf.space_to_depth
  • [tf.depth_to_space
  • tf.gather
  • tf.gather_nd
  • [tf.unique_with_counts
  • [tf.scatter_nd
  • [tf.dynamic_partition
  • [tf.dynamic_stitch
  • [tf.boolean_mask
  • [tf.one_hot
  • [tf.sequence_mask
  • [tf.dequantize
  • [tf.quantize_v2
  • [tf.quantized_concat
  • [tf.setdiff1d

四、Fake quantization

用于帮助训练以获得更好的量化精度的操作。

  • tf.fake_quant_with_min_max_args
  • tf.fake_quant_with_min_max_args_gradient
  • tf.fake_quant_with_min_max_vars
  • tf.fake_quant_with_min_max_vars_gradient
  • tf.fake_quant_with_min_max_vars_per_channel
  • tf.fake_quant_with_min_max_vars_per_channel_gradient
药企,独角兽,苏州。团队长期招人,感兴趣的都可以发邮件聊聊:tiehan@sina.cn
个人公众号,比较懒,很少更新,可以在上面提问题,如果回复不及时,可发邮件给我: tiehan@sina.cn