#pragma once #ifndef __METAL__ #include using ulong = unsigned long; #define _ARRAY_NS std #else #include #define _ARRAY_NS metal #endif template struct UpsampleParams { _ARRAY_NS::array input_strides; _ARRAY_NS::array input_sizes; _ARRAY_NS::array output_strides; _ARRAY_NS::array output_sizes; _ARRAY_NS::array scales; bool align_corners; };