!49416 fix rotate build in lite
Merge pull request !49416 from luoyang/fix_rotate_lite
This commit is contained in:
commit
e61513cc86
|
@ -1303,17 +1303,6 @@ std::shared_ptr<TensorOperation> RGB2BGR::Parse() { return std::make_shared<RgbT
|
|||
// RGB2GRAY Transform Operation.
|
||||
std::shared_ptr<TensorOperation> RGB2GRAY::Parse() { return std::make_shared<RgbToGrayOperation>(); }
|
||||
|
||||
#ifndef ENABLE_ANDROID
|
||||
// RgbaToBgr Transform Operation.
|
||||
RGBA2BGR::RGBA2BGR() = default;
|
||||
|
||||
std::shared_ptr<TensorOperation> RGBA2BGR::Parse() { return std::make_shared<RgbaToBgrOperation>(); }
|
||||
|
||||
// RgbaToRgb Transform Operation.
|
||||
RGBA2RGB::RGBA2RGB() = default;
|
||||
|
||||
std::shared_ptr<TensorOperation> RGBA2RGB::Parse() { return std::make_shared<RgbaToRgbOperation>(); }
|
||||
|
||||
// Rotate Transform Operation.
|
||||
struct Rotate::Data {
|
||||
Data(const float °rees, InterpolationMode resample, bool expand, const std::vector<float> ¢er,
|
||||
|
@ -1351,6 +1340,17 @@ std::shared_ptr<TensorOperation> Rotate::Parse() {
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
#ifndef ENABLE_ANDROID
|
||||
// RgbaToBgr Transform Operation.
|
||||
RGBA2BGR::RGBA2BGR() = default;
|
||||
|
||||
std::shared_ptr<TensorOperation> RGBA2BGR::Parse() { return std::make_shared<RgbaToBgrOperation>(); }
|
||||
|
||||
// RgbaToRgb Transform Operation.
|
||||
RGBA2RGB::RGBA2RGB() = default;
|
||||
|
||||
std::shared_ptr<TensorOperation> RGBA2RGB::Parse() { return std::make_shared<RgbaToRgbOperation>(); }
|
||||
|
||||
// SlicePatches Transform Operation.
|
||||
struct SlicePatches::Data {
|
||||
Data(int32_t num_height, int32_t num_width, SliceMode slice_mode, uint8_t fill_value)
|
||||
|
|
Loading…
Reference in New Issue