blob: 2b1f6a24f3e91d7b1c1254cd63da0e834434b958 [file] [log] [blame]
//
// Copyright © 2017 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
#pragma once
#include <armnn/TypesUtils.hpp>
namespace armnnUtils
{
armnn::TensorShape GetTensorShape(unsigned int numberOfBatches,
unsigned int numberOfChannels,
unsigned int height,
unsigned int width,
const armnn::DataLayout dataLayout);
armnn::TensorInfo GetTensorInfo(unsigned int numberOfBatches,
unsigned int numberOfChannels,
unsigned int height,
unsigned int width,
const armnn::DataLayout dataLayout,
const armnn::DataType dataType);
std::pair<float, float> FindMinMax(armnn::ITensorHandle* tensorHandle);
armnn::TensorShape ExpandDims(const armnn::TensorShape& tensorShape, int axis);
unsigned int GetNumElementsBetween(const armnn::TensorShape& shape,
unsigned int firstAxisInclusive,
unsigned int lastAxisExclusive);
unsigned int GetUnsignedAxis(const unsigned int inputDimension, const int axis);
} // namespace armnnUtils