Commit 13d63f21 authored by Scott Cyphers's avatar Scott Cyphers

Transformers don't need to export symbols.

parent d8d940d0
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
#pragma once #pragma once
#include "ngraph/op/op.hpp" #include "ngraph/op/op.hpp"
#include "ngraph/runtime/cpu/cpu_backend_visibility.h"
namespace ngraph namespace ngraph
{ {
...@@ -35,7 +34,6 @@ namespace ngraph ...@@ -35,7 +34,6 @@ namespace ngraph
class BatchMatMulTranspose : public Op class BatchMatMulTranspose : public Op
{ {
public: public:
CPU_BACKEND_API
static const std::string type_name; static const std::string type_name;
const std::string& description() const override { return type_name; } const std::string& description() const override { return type_name; }
/// \brief Constructs a batch of matmul product operation. /// \brief Constructs a batch of matmul product operation.
......
...@@ -30,7 +30,6 @@ namespace ngraph ...@@ -30,7 +30,6 @@ namespace ngraph
class BatchNormTrainingRelu : public Op class BatchNormTrainingRelu : public Op
{ {
public: public:
CPU_BACKEND_API
static const std::string type_name; static const std::string type_name;
const std::string& description() const override { return type_name; } const std::string& description() const override { return type_name; }
CPU_BACKEND_API BatchNormTrainingRelu(double eps, CPU_BACKEND_API BatchNormTrainingRelu(double eps,
...@@ -60,7 +59,6 @@ namespace ngraph ...@@ -60,7 +59,6 @@ namespace ngraph
class BatchNormInferenceRelu : public Op class BatchNormInferenceRelu : public Op
{ {
public: public:
CPU_BACKEND_API
static const std::string type_name; static const std::string type_name;
const std::string& description() const override { return type_name; } const std::string& description() const override { return type_name; }
BatchNormInferenceRelu(double eps, BatchNormInferenceRelu(double eps,
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
#include "ngraph/node.hpp" #include "ngraph/node.hpp"
#include "ngraph/op/op.hpp" #include "ngraph/op/op.hpp"
#include "ngraph/op/util/unary_elementwise_arithmetic.hpp" #include "ngraph/op/util/unary_elementwise_arithmetic.hpp"
#include "ngraph/runtime/cpu/cpu_backend_visibility.h"
namespace ngraph namespace ngraph
{ {
...@@ -30,7 +29,6 @@ namespace ngraph ...@@ -30,7 +29,6 @@ namespace ngraph
class BoundedRelu : public ngraph::op::util::UnaryElementwiseArithmetic class BoundedRelu : public ngraph::op::util::UnaryElementwiseArithmetic
{ {
public: public:
CPU_BACKEND_API
static const std::string type_name; static const std::string type_name;
const std::string& description() const override { return type_name; } const std::string& description() const override { return type_name; }
/// \brief Constructs a BoundedRelu operation. /// \brief Constructs a BoundedRelu operation.
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
#include "ngraph/op/convolution.hpp" #include "ngraph/op/convolution.hpp"
#include "ngraph/op/op.hpp" #include "ngraph/op/op.hpp"
#include "ngraph/runtime/cpu/cpu_backend_visibility.h"
namespace ngraph namespace ngraph
{ {
...@@ -27,7 +26,6 @@ namespace ngraph ...@@ -27,7 +26,6 @@ namespace ngraph
class ConvolutionAdd : public Op class ConvolutionAdd : public Op
{ {
public: public:
CPU_BACKEND_API
static const std::string type_name; static const std::string type_name;
const std::string& description() const override { return type_name; } const std::string& description() const override { return type_name; }
ConvolutionAdd(const std::shared_ptr<op::Convolution>& conv, ConvolutionAdd(const std::shared_ptr<op::Convolution>& conv,
......
...@@ -28,7 +28,6 @@ namespace ngraph ...@@ -28,7 +28,6 @@ namespace ngraph
class ConvolutionRelu : public Op class ConvolutionRelu : public Op
{ {
public: public:
CPU_BACKEND_API
static const std::string type_name; static const std::string type_name;
const std::string& description() const override { return type_name; } const std::string& description() const override { return type_name; }
CPU_BACKEND_API ConvolutionRelu(const std::shared_ptr<op::Convolution>& conv); CPU_BACKEND_API ConvolutionRelu(const std::shared_ptr<op::Convolution>& conv);
......
...@@ -35,7 +35,6 @@ namespace ngraph ...@@ -35,7 +35,6 @@ namespace ngraph
class ConvertLayout : public ngraph::op::Op class ConvertLayout : public ngraph::op::Op
{ {
public: public:
CPU_BACKEND_API
static const std::string type_name; static const std::string type_name;
const std::string& description() const override { return type_name; } const std::string& description() const override { return type_name; }
CPU_BACKEND_API ConvertLayout( CPU_BACKEND_API ConvertLayout(
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
#include "ngraph/op/convolution.hpp" #include "ngraph/op/convolution.hpp"
#include "ngraph/op/op.hpp" #include "ngraph/op/op.hpp"
#include "ngraph/runtime/cpu/cpu_backend_visibility.h"
namespace ngraph namespace ngraph
{ {
...@@ -28,7 +27,6 @@ namespace ngraph ...@@ -28,7 +27,6 @@ namespace ngraph
class DeconvolutionBias : public Op class DeconvolutionBias : public Op
{ {
public: public:
CPU_BACKEND_API
static const std::string type_name; static const std::string type_name;
const std::string& description() const override { return type_name; } const std::string& description() const override { return type_name; }
/// \brief Constructs a batched-convolution data batch-backprop operation. /// \brief Constructs a batched-convolution data batch-backprop operation.
......
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
#pragma once #pragma once
#include "ngraph/op/op.hpp" #include "ngraph/op/op.hpp"
#include "ngraph/runtime/cpu/cpu_backend_visibility.h"
#include "ngraph/util.hpp" #include "ngraph/util.hpp"
namespace ngraph namespace ngraph
...@@ -27,7 +26,6 @@ namespace ngraph ...@@ -27,7 +26,6 @@ namespace ngraph
class Dropout : public Op class Dropout : public Op
{ {
public: public:
CPU_BACKEND_API
static const std::string type_name; static const std::string type_name;
const std::string& description() const override { return type_name; } const std::string& description() const override { return type_name; }
Dropout(const Output<Node>& input, Dropout(const Output<Node>& input,
......
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
#pragma once #pragma once
#include "ngraph/op/fused/group_conv.hpp" #include "ngraph/op/fused/group_conv.hpp"
#include "ngraph/op/op.hpp" #include "ngraph/op/op.hpp"
#include "ngraph/runtime/cpu/cpu_backend_visibility.h"
namespace ngraph namespace ngraph
{ {
...@@ -28,7 +27,6 @@ namespace ngraph ...@@ -28,7 +27,6 @@ namespace ngraph
class GroupConvolutionBias : public Op class GroupConvolutionBias : public Op
{ {
public: public:
CPU_BACKEND_API
static const std::string type_name; static const std::string type_name;
const std::string& description() const override { return type_name; } const std::string& description() const override { return type_name; }
GroupConvolutionBias(const std::shared_ptr<op::GroupConvolution>& conv, GroupConvolutionBias(const std::shared_ptr<op::GroupConvolution>& conv,
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#include <vector> #include <vector>
#include "ngraph/op/op.hpp" #include "ngraph/op/op.hpp"
#include "ngraph/runtime/cpu/cpu_backend_visibility.h"
namespace ngraph namespace ngraph
{ {
...@@ -33,7 +32,6 @@ namespace ngraph ...@@ -33,7 +32,6 @@ namespace ngraph
class HalideOp : public ngraph::op::Op class HalideOp : public ngraph::op::Op
{ {
public: public:
CPU_BACKEND_API
static const std::string type_name; static const std::string type_name;
const std::string& description() const override { return type_name; } const std::string& description() const override { return type_name; }
HalideOp(const OutputVector& args, HalideOp(const OutputVector& args,
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
#include "ngraph/node.hpp" #include "ngraph/node.hpp"
#include "ngraph/op/op.hpp" #include "ngraph/op/op.hpp"
#include "ngraph/op/util/unary_elementwise_arithmetic.hpp" #include "ngraph/op/util/unary_elementwise_arithmetic.hpp"
#include "ngraph/runtime/cpu/cpu_backend_visibility.h"
namespace ngraph namespace ngraph
{ {
...@@ -31,7 +30,6 @@ namespace ngraph ...@@ -31,7 +30,6 @@ namespace ngraph
class CPULeakyRelu : public ngraph::op::util::UnaryElementwiseArithmetic class CPULeakyRelu : public ngraph::op::util::UnaryElementwiseArithmetic
{ {
public: public:
CPU_BACKEND_API
static const std::string type_name; static const std::string type_name;
const std::string& description() const override { return type_name; } const std::string& description() const override { return type_name; }
/// \brief Constructs a CPULeakyRelu operation. /// \brief Constructs a CPULeakyRelu operation.
......
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
#pragma once #pragma once
#include "ngraph/op/op.hpp" #include "ngraph/op/op.hpp"
#include "ngraph/runtime/cpu/cpu_backend_visibility.h"
#include "ngraph/runtime/cpu/op/rnn_utils.hpp" #include "ngraph/runtime/cpu/op/rnn_utils.hpp"
#include "ngraph/util.hpp" #include "ngraph/util.hpp"
...@@ -28,7 +27,6 @@ namespace ngraph ...@@ -28,7 +27,6 @@ namespace ngraph
class Lstm : public Op class Lstm : public Op
{ {
public: public:
CPU_BACKEND_API
static const std::string type_name; static const std::string type_name;
const std::string& description() const override { return type_name; } const std::string& description() const override { return type_name; }
// INPUTS: // INPUTS:
......
...@@ -27,7 +27,6 @@ namespace ngraph ...@@ -27,7 +27,6 @@ namespace ngraph
class MatmulBias : public Op class MatmulBias : public Op
{ {
public: public:
CPU_BACKEND_API
static const std::string type_name; static const std::string type_name;
const std::string& description() const override { return type_name; } const std::string& description() const override { return type_name; }
CPU_BACKEND_API MatmulBias(const Output<Node>& W, CPU_BACKEND_API MatmulBias(const Output<Node>& W,
......
...@@ -32,7 +32,6 @@ namespace ngraph ...@@ -32,7 +32,6 @@ namespace ngraph
class MaxPoolWithIndices : public Op class MaxPoolWithIndices : public Op
{ {
public: public:
CPU_BACKEND_API
static const std::string type_name; static const std::string type_name;
const std::string& description() const override { return type_name; } const std::string& description() const override { return type_name; }
CPU_BACKEND_API MaxPoolWithIndices(const Output<Node>& arg, CPU_BACKEND_API MaxPoolWithIndices(const Output<Node>& arg,
...@@ -68,7 +67,6 @@ namespace ngraph ...@@ -68,7 +67,6 @@ namespace ngraph
class MaxPoolWithIndicesBackprop : public Op class MaxPoolWithIndicesBackprop : public Op
{ {
public: public:
CPU_BACKEND_API
static const std::string type_name; static const std::string type_name;
const std::string& description() const override { return type_name; } const std::string& description() const override { return type_name; }
CPU_BACKEND_API MaxPoolWithIndicesBackprop(const Output<Node>& arg_forward, CPU_BACKEND_API MaxPoolWithIndicesBackprop(const Output<Node>& arg_forward,
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
#include <utility> #include <utility>
#include "ngraph/op/op.hpp" #include "ngraph/op/op.hpp"
#include "ngraph/runtime/cpu/cpu_backend_visibility.h"
namespace ngraph namespace ngraph
{ {
...@@ -28,7 +27,6 @@ namespace ngraph ...@@ -28,7 +27,6 @@ namespace ngraph
class QuantizedMatmul : public Op class QuantizedMatmul : public Op
{ {
public: public:
CPU_BACKEND_API
static const std::string type_name; static const std::string type_name;
const std::string& description() const override { return type_name; } const std::string& description() const override { return type_name; }
QuantizedMatmul(const Output<Node>& data, QuantizedMatmul(const Output<Node>& data,
......
...@@ -48,7 +48,6 @@ namespace ngraph ...@@ -48,7 +48,6 @@ namespace ngraph
class Rnn : public Op class Rnn : public Op
{ {
public: public:
CPU_BACKEND_API
static const std::string type_name; static const std::string type_name;
const std::string& description() const override { return type_name; } const std::string& description() const override { return type_name; }
CPU_BACKEND_API Rnn(const Output<Node>& src_layer, CPU_BACKEND_API Rnn(const Output<Node>& src_layer,
......
...@@ -30,7 +30,6 @@ namespace ngraph ...@@ -30,7 +30,6 @@ namespace ngraph
class SigmoidMultiply : public Op class SigmoidMultiply : public Op
{ {
public: public:
CPU_BACKEND_API
static const std::string type_name; static const std::string type_name;
const std::string& description() const override { return type_name; } const std::string& description() const override { return type_name; }
/// Defines valid function types /// Defines valid function types
...@@ -69,7 +68,6 @@ namespace ngraph ...@@ -69,7 +68,6 @@ namespace ngraph
class SigmoidMultiplyBackprop : public Op class SigmoidMultiplyBackprop : public Op
{ {
public: public:
CPU_BACKEND_API
static const std::string type_name; static const std::string type_name;
const std::string& description() const override { return type_name; } const std::string& description() const override { return type_name; }
typedef SigmoidMultiply::FunctionType FunctionType; typedef SigmoidMultiply::FunctionType FunctionType;
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
#include "ngraph/coordinate.hpp" #include "ngraph/coordinate.hpp"
#include "ngraph/op/op.hpp" #include "ngraph/op/op.hpp"
#include "ngraph/runtime/cpu/cpu_backend_visibility.h"
#include "ngraph/strides.hpp" #include "ngraph/strides.hpp"
namespace ngraph namespace ngraph
...@@ -51,7 +50,6 @@ namespace ngraph ...@@ -51,7 +50,6 @@ namespace ngraph
class UpdateSlice : public Op class UpdateSlice : public Op
{ {
public: public:
CPU_BACKEND_API
static const std::string type_name; static const std::string type_name;
const std::string& description() const override { return type_name; } const std::string& description() const override { return type_name; }
/// \brief Constructs a tensor slice update operation. /// \brief Constructs a tensor slice update operation.
......
...@@ -39,7 +39,6 @@ namespace ngraph ...@@ -39,7 +39,6 @@ namespace ngraph
class ngraph::runtime::plaidml::op::Convolution final : public ngraph::op::Op class ngraph::runtime::plaidml::op::Convolution final : public ngraph::op::Op
{ {
public: public:
NGRAPH_API
static const std::string type_name; static const std::string type_name;
const std::string& description() const override { return type_name; } const std::string& description() const override { return type_name; }
Convolution(std::shared_ptr<ngraph::op::Convolution> src, Convolution(std::shared_ptr<ngraph::op::Convolution> src,
...@@ -66,7 +65,6 @@ private: ...@@ -66,7 +65,6 @@ private:
class ngraph::runtime::plaidml::op::ConvolutionBackpropData final : public ngraph::op::Op class ngraph::runtime::plaidml::op::ConvolutionBackpropData final : public ngraph::op::Op
{ {
public: public:
NGRAPH_API
static const std::string type_name; static const std::string type_name;
const std::string& description() const override { return type_name; } const std::string& description() const override { return type_name; }
ConvolutionBackpropData(std::shared_ptr<ngraph::op::ConvolutionBackpropData> src, ConvolutionBackpropData(std::shared_ptr<ngraph::op::ConvolutionBackpropData> src,
...@@ -93,7 +91,6 @@ private: ...@@ -93,7 +91,6 @@ private:
class ngraph::runtime::plaidml::op::ConvolutionBackpropFilters final : public ngraph::op::Op class ngraph::runtime::plaidml::op::ConvolutionBackpropFilters final : public ngraph::op::Op
{ {
public: public:
NGRAPH_API
static const std::string type_name; static const std::string type_name;
const std::string& description() const override { return type_name; } const std::string& description() const override { return type_name; }
ConvolutionBackpropFilters(std::shared_ptr<ngraph::op::ConvolutionBackpropFilters> src, ConvolutionBackpropFilters(std::shared_ptr<ngraph::op::ConvolutionBackpropFilters> src,
......
...@@ -40,7 +40,6 @@ namespace ngraph ...@@ -40,7 +40,6 @@ namespace ngraph
class ngraph::runtime::plaidml::op::ImplicitBroadcast final : public ngraph::op::Op class ngraph::runtime::plaidml::op::ImplicitBroadcast final : public ngraph::op::Op
{ {
public: public:
NGRAPH_API
static const std::string type_name; static const std::string type_name;
const std::string& description() const override { return type_name; } const std::string& description() const override { return type_name; }
ImplicitBroadcast(const Output<Node>& input, const Shape& shape); ImplicitBroadcast(const Output<Node>& input, const Shape& shape);
......
...@@ -39,7 +39,6 @@ namespace ngraph ...@@ -39,7 +39,6 @@ namespace ngraph
class ngraph::runtime::plaidml::op::Replicate final : public ngraph::op::Op class ngraph::runtime::plaidml::op::Replicate final : public ngraph::op::Op
{ {
public: public:
NGRAPH_API
static const std::string type_name; static const std::string type_name;
const std::string& description() const override { return type_name; } const std::string& description() const override { return type_name; }
Replicate(const Output<Node>& arg, std::size_t replication_axis, std::size_t replication_count); Replicate(const Output<Node>& arg, std::size_t replication_axis, std::size_t replication_count);
......
...@@ -38,7 +38,6 @@ namespace ngraph ...@@ -38,7 +38,6 @@ namespace ngraph
class ngraph::runtime::plaidml::op::Winograd final : public ngraph::op::Op class ngraph::runtime::plaidml::op::Winograd final : public ngraph::op::Op
{ {
public: public:
NGRAPH_API
static const std::string type_name; static const std::string type_name;
const std::string& description() const override { return type_name; } const std::string& description() const override { return type_name; }
Winograd(std::shared_ptr<Convolution> conv, const OutputVector& args); Winograd(std::shared_ptr<Convolution> conv, const OutputVector& args);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment