namespace neurun
{
-namespace codegen
+namespace compiler
{
// NOT IMPLEMENTED
-} // namespace codegen
+} // namespace compiler
} // namespace neurun
* limitations under the License.
*/
-#ifndef __NEURUN_CODEGEN_BACKEND_RESOLVER_H__
-#define __NEURUN_CODEGEN_BACKEND_RESOLVER_H__
+#ifndef __NEURUN_COMPILER_BACKEND_RESOLVER_H__
+#define __NEURUN_COMPILER_BACKEND_RESOLVER_H__
#include <set>
#include <unordered_map>
namespace neurun
{
-namespace codegen
+namespace compiler
{
class BackendResolver
std::shared_ptr<backend::BackendManager> _backend_manager;
};
-} // namespace codegen
+} // namespace compiler
} // namespace neurun
-#endif // __NEURUN_CODEGEN_BACKEND_RESOLVER_H__
+#endif // __NEURUN_COMPILER_BACKEND_RESOLVER_H__
#include "operation/LowerInfo.h"
#include "operand/LowerInfo.h"
#include "operand/Shape4DConvert.h"
-#include "codegen/BackendResolver.h"
+#include "compiler/BackendResolver.h"
#include "backend/interface/IConfig.h"
#include "operation/PermuteNode.h"
#include "pass/PermutationInsertionPass.h"
nnfw::make_unique<operand::LowerInfo>(operand::asShape4D(object.shape()));
});
- _backend_resolver = nnfw::make_unique<codegen::BackendResolver>(_model->operands);
+ _backend_resolver = nnfw::make_unique<compiler::BackendResolver>(_model->operands);
_model->operations.iterate([&](const operation::Index &, operation::Node &node) {
auto backend = _backend_resolver->getBackend(typeid(node));
namespace neurun
{
-namespace codegen
+namespace compiler
{
class BackendResolver;
-} // namespace linear
+} // namespace compiler
} // namespace neurun
namespace neurun
operand::Set &operands() { return _model->operands; } // TODO Remove this non-const accessor
const operation::Set &operations() const { return _model->operations; }
operation::Set &operations() { return _model->operations; }
- const codegen::BackendResolver *backend_resolver() const { return _backend_resolver.get(); }
+ const compiler::BackendResolver *backend_resolver() const { return _backend_resolver.get(); }
private:
Phase _phase{Phase::BUILDING};
// For LOWERED phase
private:
- std::unique_ptr<codegen::BackendResolver> _backend_resolver;
+ std::unique_ptr<compiler::BackendResolver> _backend_resolver;
};
} // namespace graph
#include "graph/Graph.h"
#include "backend/interface/IConfig.h"
#include "logging.h"
-#include "codegen/BackendResolver.h"
+#include "compiler/BackendResolver.h"
namespace neurun
{
#include "nnfw/std/memory.h"
#include "graph/operation/PermuteNode.h"
#include "graph/operand/Shape4DConvert.h"
-#include "codegen/BackendResolver.h"
+#include "compiler/BackendResolver.h"
namespace neurun
{