ONE - On-device Neural Engine
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
CircleShapeInferenceRule.cpp File Reference
#include "luci/Service/CircleShapeInferenceRule.h"
#include "Check.h"
#include "CircleShapeInferenceHelper.h"
#include <luci/IR/CircleNodes.h>
#include <luci/IR/CircleDialect.h>
#include <luci/IR/CircleNodeVisitor.h>
#include <luci/Log.h>
#include <oops/InternalExn.h>
#include <algorithm>
#include <cassert>
#include <cmath>
#include <limits>
#include <stdexcept>

Go to the source code of this file.

Namespaces

namespace  luci
 

Macros

#define DECLARE_USE_SINGLE(NAME)
 

Macro Definition Documentation

◆ DECLARE_USE_SINGLE

#define DECLARE_USE_SINGLE (   NAME)
Value:
template <class CIRCLENODE> loco::NodeShape use_##NAME(const CIRCLENODE *node) \
{ \
auto inputs_shape = luci::shape_get(node->NAME()).template as<loco::TensorShape>(); \
return loco::NodeShape{inputs_shape}; \
}
loco::NodeShape shape_get(const loco::Node *node)

Definition at line 200 of file CircleShapeInferenceRule.cpp.

202 { \
203 auto inputs_shape = luci::shape_get(node->NAME()).template as<loco::TensorShape>(); \
204 return loco::NodeShape{inputs_shape}; \
205 }