從input 中提取patches 並將它們放入"depth" 輸出維度中。 extract_image_patches 的 3D 擴展。
用法
tf.extract_volume_patches(
input, ksizes, strides, padding, name=None
)參數
-
input一個Tensor。必須是以下類型之一:float32,float64,int32,uint8,int16,int8,int64,bfloat16,uint16,half,uint32,uint64。形狀為[batch, in_planes, in_rows, in_cols, depth]的 5-D 張量。 -
ksizes長度為>= 5的ints列表。input每個維度的滑動窗口大小。 -
strides長度為>= 5的ints列表。長度為 5 的一維。兩個連續補丁的中心在input中的距離。必須是:[1, stride_planes, stride_rows, stride_cols, 1]。 -
paddingAstring從:"SAME", "VALID".要使用的填充算法的類型。size-related 屬性指定如下:
ksizes = [1, ksize_planes, ksize_rows, ksize_cols, 1] strides = [1, stride_planes, strides_rows, strides_cols, 1] -
name操作的名稱(可選)。
返回
-
一個
Tensor。具有與input相同的類型。
相關用法
- Python tf.experimental.dlpack.from_dlpack用法及代碼示例
- Python tf.experimental.numpy.iinfo用法及代碼示例
- Python tf.experimental.Optional.has_value用法及代碼示例
- Python tf.experimental.dispatch_for_unary_elementwise_apis用法及代碼示例
- Python tf.experimental.dispatch_for_api用法及代碼示例
- Python tf.experimental.unregister_dispatch_for用法及代碼示例
- Python tf.experimental.tensorrt.Converter用法及代碼示例
- Python tf.experimental.ExtensionType用法及代碼示例
- Python tf.experimental.Optional.get_value用法及代碼示例
- Python tf.experimental.numpy.issubdtype用法及代碼示例
- Python tf.experimental.numpy.unicode_用法及代碼示例
- Python tf.expand_dims用法及代碼示例
- Python tf.experimental.dlpack.to_dlpack用法及代碼示例
- Python tf.experimental.async_scope用法及代碼示例
- Python tf.experimental.Optional.empty用法及代碼示例
- Python tf.experimental.numpy.float16.as_integer_ratio用法及代碼示例
注:本文由純淨天空篩選整理自tensorflow.org大神的英文原創作品 tf.extract_volume_patches。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。
