public:
template <typename Callable> IndexIterator &iter(Callable cb)
{
- for (uint32_t batch = 0; batch < _shape.N; ++batch)
+ for (int32_t batch = 0; batch < _shape.N; ++batch)
{
- for (uint32_t ch = 0; ch < _shape.C; ++ch)
+ for (int32_t ch = 0; ch < _shape.C; ++ch)
{
- for (uint32_t row = 0; row < _shape.H; ++row)
+ for (int32_t row = 0; row < _shape.H; ++row)
{
- for (uint32_t col = 0; col < _shape.W; ++col)
+ for (int32_t col = 0; col < _shape.W; ++col)
{
cb(batch, ch, row, col);
}
_builder.addShapeConstr(ofm_index, ::internal::asTensorInfo(ofm_shape));
// Set Shape Constraints (for input)
- uint32_t depth = 0;
-
for (const auto &index : node.getInputs().list())
{
const ::neurun::graph::operand::Index ifm_index{index};
_builder.addStage(stage_gen->generate(node));
}
-void Planner::visit(const graph::operation::NOP::Node &node)
+void Planner::visit(const graph::operation::NOP::Node & /* node */)
{
// DO NOTHING
// TODO : It's just for graph manipulation test now, it should be added tensor copy stage later.
}
int ANeuralNetworksExecution_setInput(ANeuralNetworksExecution *execution, int32_t index,
- const ANeuralNetworksOperandType *type, const void *buffer,
- size_t length)
+ const ANeuralNetworksOperandType * /* type */,
+ const void *buffer, size_t length)
{
// Don't check type
// Comment about ANeuralNetworksOperandType in NeuralNetworks.h:
}
int ANeuralNetworksExecution_setOutput(ANeuralNetworksExecution *execution, int32_t index,
- const ANeuralNetworksOperandType *type, void *buffer,
+ const ANeuralNetworksOperandType * /* type */, void *buffer,
size_t length)
{
// Don't check type
return ANEURALNETWORKS_NO_ERROR;
}
-void ANeuralNetworksExecution_free(ANeuralNetworksExecution *execution) {}
+void ANeuralNetworksExecution_free(ANeuralNetworksExecution * /* execution */) {}
-int ANeuralNetworksExecution_setInputFromMemory(ANeuralNetworksExecution *execution, int32_t index,
- const ANeuralNetworksOperandType *type,
- const ANeuralNetworksMemory *memory, size_t offset,
- size_t length)
+int ANeuralNetworksExecution_setInputFromMemory(ANeuralNetworksExecution *execution,
+ int32_t /* index */,
+ const ANeuralNetworksOperandType * /* type */,
+ const ANeuralNetworksMemory *memory,
+ size_t /* offset */, size_t /* length */)
{
if ((execution == nullptr) || (memory == nullptr))
{
return ANEURALNETWORKS_NO_ERROR;
}
-int ANeuralNetworksExecution_setOutputFromMemory(ANeuralNetworksExecution *execution, int32_t index,
- const ANeuralNetworksOperandType *type,
- const ANeuralNetworksMemory *memory, size_t offset,
- size_t length)
+int ANeuralNetworksExecution_setOutputFromMemory(ANeuralNetworksExecution *execution,
+ int32_t /* index */,
+ const ANeuralNetworksOperandType * /* type */,
+ const ANeuralNetworksMemory *memory,
+ size_t /* offset */, size_t /* length */)
{
if ((execution == nullptr) || (memory == nullptr))
{