1 /** 2 * Copyright 2020-2021 Huawei Technologies Co., Ltd 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 #ifndef MINDSPORE_CORE_OPS_TILE_FUSION_H_ 18 #define MINDSPORE_CORE_OPS_TILE_FUSION_H_ 19 #include <vector> 20 21 #include "ops/tile.h" 22 #include "ops/op_utils.h" 23 #include "utils/check_convert_utils.h" 24 25 namespace mindspore { 26 namespace ops { 27 constexpr auto kNameTileFusion = "TileFusion"; 28 /// \brief TileFusion defined Tile operator prototype of lite. 29 class MS_CORE_API TileFusion : public Tile { 30 public: 31 /// \brief Constructor. TileFusion()32 TileFusion() : Tile(kNameTileFusion) {} 33 34 /// \brief Destructor. 35 ~TileFusion() = default; 36 37 MS_DECLARE_PARENT(TileFusion, Tile); 38 39 /// \brief Method to init the op's attributes. 40 /// 41 /// \param[in] dims Define this operation will be performed on which axes. 42 void Init(const std::vector<int64_t> &dims); 43 44 /// \brief Method to set dims attribute. 45 /// 46 /// \param[in] dims Define this operation will be performed on which axes. 47 void set_dims(const std::vector<int64_t> &dims); 48 49 /// \brief Method to get dims attribute. 50 /// 51 /// \return axes. 52 std::vector<int64_t> get_dims() const; 53 }; 54 } // namespace ops 55 } // namespace mindspore 56 57 #endif // MINDSPORE_CORE_OPS_TILE_FUSION_H_ 58