Function std::conv2d_forward_rocm
struct FeatureMap conv2d_forward_rocm(const &Conv2D layer, const &FeatureMap input)Same signatures and results as the CPU functions; each falls back to the CPU implementation if there is no usable GPU. Every call uploads the weights — inside a loop, upload once and use the queued ops above.