-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Subgraph] rename GraphRepresentation to GraphLayerNodeRepresentation
- This commit renames the alias for `GraphRepresentation` to `GraphLayerNodeRepresentation` - The reason we do this is to update the GraphRepresentation as the serialized SubGraphBase pointer, not LayerNode Signed-off-by: Eunju Yang <[email protected]>
- Loading branch information
Showing
38 changed files
with
179 additions
and
165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,8 @@ | |
* | ||
* @file interpreter.h | ||
* @date 01 April 2021 | ||
* @brief NNTrainer interpreter that reads and generates a graphRepresentation | ||
from a file | ||
* @brief NNTrainer interpreter that reads and generates a | ||
GraphLayerNodeRepresentation from a file | ||
* @see https://github.com/nnstreamer/nntrainer | ||
* @author Jihoon Lee <[email protected]> | ||
* @bug No known bugs except for NYI items | ||
|
@@ -15,25 +15,25 @@ | |
interpreter | ||
* For example, if istream would be from a a.tflite file, | ||
* | ||
* GraphRepresentation g; | ||
* GraphLayerNodeRepresentation g; | ||
* GraphInterpreter * interpreter = new TfliteInterpreter; | ||
* | ||
* std::ifstream f = std::open("a.tflite"); | ||
* g = interpreter->serialize(f); | ||
* | ||
* +--------+ | ||
* |iostream| | ||
* +--+--+--+ | ||
* ^ | | ||
* serialize()| | | ||
* | | | ||
* (Interpreter) | ||
* | | | ||
* | | deserialize() | ||
* | v | ||
* +-------+--+--------+ | ||
* |GraphRepresentation| | ||
* +-------+-----------+ | ||
* +--------+ | ||
* |iostream| | ||
* +--+--+--+ | ||
* ^ | | ||
* serialize()| | | ||
* | | | ||
* (Interpreter) | ||
* | | | ||
* | | deserialize() | ||
* | v | ||
* +-----------+---+------------+ | ||
* |GraphLayerNodeRepresentation| | ||
* +-----------+---+------------+ | ||
* | ||
*/ | ||
#ifndef __INTERPRETER_H__ | ||
|
@@ -60,7 +60,7 @@ class GraphInterpreter { | |
* @param representation graph representation | ||
* @param out output file name | ||
*/ | ||
virtual void serialize(const GraphRepresentation &representation, | ||
virtual void serialize(const GraphLayerNodeRepresentation &representation, | ||
const std::string &out) = 0; | ||
|
||
/** | ||
|
@@ -86,9 +86,9 @@ class GraphInterpreter { | |
* @brief deserialize graph from a stream | ||
* | ||
* @param in input file name | ||
* @return GraphRepresentation graph representation | ||
* @return GraphLayerNodeRepresentation graph representation | ||
*/ | ||
virtual GraphRepresentation deserialize(const std::string &in) = 0; | ||
virtual GraphLayerNodeRepresentation deserialize(const std::string &in) = 0; | ||
}; | ||
|
||
} // namespace nntrainer | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.