lvhan028 3be1779e66
Refactor tests (#283)
* fix sdk model's pipeline.json

* resize INT64 mask

* refactor unit tests

* fix api in model.h

* remove 'customs' from meta info

* fix zip model

* fix clang-format issue

* put tc on each backend into a SECTION

* change SECTION title

* add DYNAMIC_SECTION for capi unit test

* change 'devices' to 'device_names'

* change trt to tensorrt

* remove uncessary check

* add color_type 'color_ignore_orientation' which is used in ocr

* 'min_width', 'max_width' and 'backend' might be null in pipeline config

* fix clang-format issue

* remove useless code
2021-12-17 19:57:37 +08:00

20 lines
577 B
C++

// Copyright (c) OpenMMLab. All rights reserved.
#ifndef MMDEPLOY_TEST_TRANSFORM_UTILS_H
#define MMDEPLOY_TEST_TRANSFORM_UTILS_H
#include "core/tensor.h"
#include "core/value.h"
#include "preprocess/transform/transform.h"
namespace mmdeploy::test {
std::unique_ptr<Transform> CreateTransform(const Value& cfg, Device device, Stream stream);
std::vector<int64_t> Shape(const Value& value, const std::string& shape_key);
std::vector<float> ImageNormCfg(const Value& value, const std::string& key);
} // namespace mmdeploy::test
#endif // MMDEPLOY_TEST_TRANSFORM_UTILS_H