| 189 | } |
| 190 | |
| 191 | TensorFormat DefaultTensorFormat::make() { |
| 192 | // use static storage so the object is accessible in global destructing |
| 193 | // phase |
| 194 | static std::aligned_storage_t< |
| 195 | sizeof(DefaultTensorFormat), alignof(DefaultTensorFormat)> |
| 196 | storage; |
| 197 | static DefaultTensorFormat* obj = default_tensor_format_obj = |
| 198 | new (&storage) DefaultTensorFormat{}; |
| 199 | return impl_to_tensor_format(obj); |
| 200 | } |
| 201 | |
| 202 | /* ===================== Image2DTensorFormatBase ===================== */ |
| 203 |
nothing calls this directly
no test coverage detected