/*******************************************************************************
-* Copyright 2016-2018 Intel Corporation
+* Copyright 2018 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* limitations under the License.
*******************************************************************************/
-#include "mkldnn_test_common.hpp"
-#include "gtest/gtest.h"
+#include "cpu_primitive.hpp"
+#include "cpu_memory.hpp"
-#include "mkldnn.hpp"
-#include "test_convolution_relu_forward_common.hpp"
namespace mkldnn {
+namespace impl {
+namespace cpu {
-using convolution_test = convolution_relu_test<float, float, float, float>;
-
-TEST_P(convolution_test, TestConvolution)
+const cpu_memory_t *cpu_primitive_t::output_memory_primitive(size_t index) const
{
+ return static_cast<const cpu_memory_t *>(outputs()[index]);
}
-#define FP32
-#define DIRECTION_FORWARD
-#include "convolution_common.h"
-
-#undef ELTWISE_ALPHA
-#define ELTWISE_ALPHA 0.2f
-#undef ELTWISE_BETA
-#define ELTWISE_BETA 0.0f
-#include "convolution_common.h"
}
+}
+}
+