Added missed cases for TEXTURE_3D.
PiperOrigin-RevId: 288533435 Change-Id: I1f0b98877721446837f52fdca5f98326079b6b65
This commit is contained in:
parent
febe171d32
commit
e37290d8df
@ -27,6 +27,7 @@ ObjectType ToObjectType(TensorStorageType type) {
|
||||
case TensorStorageType::SINGLE_TEXTURE_2D:
|
||||
case TensorStorageType::TEXTURE_2D:
|
||||
case TensorStorageType::TEXTURE_ARRAY:
|
||||
case TensorStorageType::TEXTURE_3D:
|
||||
return ObjectType::OPENCL_TEXTURE;
|
||||
default:
|
||||
return ObjectType::UNKNOWN;
|
||||
@ -45,6 +46,8 @@ DataLayout ToDataLayout(TensorStorageType type) {
|
||||
return DataLayout::HDWC4;
|
||||
case TensorStorageType::TEXTURE_ARRAY:
|
||||
return DataLayout::DHWC4;
|
||||
case TensorStorageType::TEXTURE_3D:
|
||||
return DataLayout::DHWC4;
|
||||
default:
|
||||
return DataLayout::UNKNOWN;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user