diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/armnnDeserializer/IDeserializer.hpp | 17 | ||||
-rw-r--r-- | include/armnnSerializer/ISerializer.hpp | 12 |
2 files changed, 17 insertions, 12 deletions
diff --git a/include/armnnDeserializer/IDeserializer.hpp b/include/armnnDeserializer/IDeserializer.hpp index b2e5d10b69..071e7984b7 100644 --- a/include/armnnDeserializer/IDeserializer.hpp +++ b/include/armnnDeserializer/IDeserializer.hpp @@ -32,23 +32,24 @@ public: static void Destroy(IDeserializer* parser); /// Create an input network from binary file contents - virtual armnn::INetworkPtr CreateNetworkFromBinary(const std::vector<uint8_t>& binaryContent) = 0; + armnn::INetworkPtr CreateNetworkFromBinary(const std::vector<uint8_t>& binaryContent); /// Create an input network from a binary input stream - virtual armnn::INetworkPtr CreateNetworkFromBinary(std::istream& binaryContent) = 0; + armnn::INetworkPtr CreateNetworkFromBinary(std::istream& binaryContent); /// Retrieve binding info (layer id and tensor info) for the network input identified by /// the given layer name and layers id - virtual BindingPointInfo GetNetworkInputBindingInfo(unsigned int layerId, - const std::string& name) const = 0; + BindingPointInfo GetNetworkInputBindingInfo(unsigned int layerId, const std::string& name) const; /// Retrieve binding info (layer id and tensor info) for the network output identified by /// the given layer name and layers id - virtual BindingPointInfo GetNetworkOutputBindingInfo(unsigned int layerId, - const std::string& name) const = 0; + BindingPointInfo GetNetworkOutputBindingInfo(unsigned int layerId, const std::string& name) const; -protected: - virtual ~IDeserializer() {}; +private: + IDeserializer(); + ~IDeserializer(); + class DeserializerImpl; + std::unique_ptr<DeserializerImpl> pDeserializerImpl; }; } //namespace armnnDeserializer
\ No newline at end of file diff --git a/include/armnnSerializer/ISerializer.hpp b/include/armnnSerializer/ISerializer.hpp index 7d91af8afe..5c6b3cc71f 100644 --- a/include/armnnSerializer/ISerializer.hpp +++ b/include/armnnSerializer/ISerializer.hpp @@ -23,15 +23,19 @@ public: /// Serializes the network to ArmNN SerializedGraph. /// @param [in] inNetwork The network to be serialized. - virtual void Serialize(const armnn::INetwork& inNetwork) = 0; + void Serialize(const armnn::INetwork& inNetwork); /// Serializes the SerializedGraph to the stream. /// @param [stream] the stream to save to /// @return true if graph is Serialized to the Stream, false otherwise - virtual bool SaveSerializedToStream(std::ostream& stream) = 0; + bool SaveSerializedToStream(std::ostream& stream); -protected: - virtual ~ISerializer() {} +private: + ISerializer(); + ~ISerializer(); + + class SerializerImpl; + std::unique_ptr<SerializerImpl> pSerializerImpl; }; } //namespace armnnSerializer |