90{
91 auto tensor = std::make_shared<Tensor>();
92 {
93 tensor->dtype(node->dtype());
94 tensor->rank(node->rank());
95 for (uint32_t i = 0; i < node->rank(); i++)
96 tensor->dim(i) = node->dim(i);
97
98 switch (node->dtype())
99 {
100 case loco::DataType::FLOAT32:
102 break;
103 case loco::DataType::U8:
105 break;
106 case loco::DataType::S16:
108 break;
109 case loco::DataType::S32:
111 break;
112 case loco::DataType::S64:
114 break;
115 default:
116 throw std::runtime_error("Unsupported input tensor dtype for " + node->name());
117 }
118 }
119
121}
122
123}
uint32_t numElements(const luci::CircleNode *node)