Tensor Transformations
[TOC]
Casting
TensorFlow provides several operations that you can use to cast tensor data
types in your graph.
tf.string_to_numbertf.to_doubletf.to_floattf.to_bfloat16tf.to_int32tf.to_int64tf.casttf.bitcasttf.saturate_cast
Shapes and Shaping
TensorFlow provides several operations that you can use to determine the shape
of a tensor and change the shape of a tensor.
tf.broadcast_dynamic_shapetf.broadcast_static_shapetf.shapetf.shape_ntf.sizetf.ranktf.reshapetf.squeezetf.expand_dimstf.meshgrid
Slicing and Joining
TensorFlow provides several operations to slice or extract parts of a tensor,
or join multiple tensors together.
tf.slicetf.strided_slicetf.splittf.tiletf.padtf.concattf.stacktf.parallel_stacktf.unstacktf.reverse_sequencetf.reversetf.reverse_v2tf.transposetf.extract_image_patchestf.space_to_batch_ndtf.space_to_batchtf.required_space_to_batch_paddingstf.batch_to_space_ndtf.batch_to_spacetf.space_to_depthtf.depth_to_spacetf.gathertf.gather_ndtf.unique_with_countstf.scatter_ndtf.dynamic_partitiontf.dynamic_stitchtf.boolean_masktf.one_hottf.sequence_masktf.dequantizetf.quantize_v2tf.quantized_concattf.setdiff1d
Fake quantization
Operations used to help train for better quantization accuracy.