Rename Op 'Permute' to 'Transpose'
Signed-off-by: Jiang Bo <bo.jiang@verisilicon.com>
This commit is contained in:
parent
7972af0697
commit
90b7a6fc32
|
|
@ -21,17 +21,17 @@
|
|||
* DEALINGS IN THE SOFTWARE.
|
||||
*
|
||||
*****************************************************************************/
|
||||
#ifndef TIM_VX_OPS_PERMUTE_H_
|
||||
#define TIM_VX_OPS_PERMUTE_H_
|
||||
#ifndef TIM_VX_OPS_TRANSPOSE_H_
|
||||
#define TIM_VX_OPS_TRANSPOSE_H_
|
||||
#include "tim/vx/operation.h"
|
||||
|
||||
namespace tim {
|
||||
namespace vx {
|
||||
namespace ops {
|
||||
|
||||
class Permute : public Operation {
|
||||
class Transpose : public Operation {
|
||||
public:
|
||||
Permute(Graph* graph, const std::vector<uint32_t>& perm);
|
||||
Transpose(Graph* graph, const std::vector<uint32_t>& perm);
|
||||
|
||||
protected:
|
||||
std::vector<uint32_t> perm_;
|
||||
|
|
@ -41,4 +41,4 @@ class Permute : public Operation {
|
|||
} // namespace vx
|
||||
} // namespace tim
|
||||
|
||||
#endif /* TIM_VX_OPS_PERMUTE_H_ */
|
||||
#endif /* TIM_VX_OPS_TRANSPOSE_H_ */
|
||||
|
|
@ -21,7 +21,7 @@
|
|||
* DEALINGS IN THE SOFTWARE.
|
||||
*
|
||||
*****************************************************************************/
|
||||
#include "tim/vx/ops/permute.h"
|
||||
#include "tim/vx/ops/transpose.h"
|
||||
|
||||
#include "operation_private.h"
|
||||
#include "vsi_nn_pub.h"
|
||||
|
|
@ -30,7 +30,7 @@ namespace tim {
|
|||
namespace vx {
|
||||
namespace ops {
|
||||
|
||||
Permute::Permute(Graph* graph, const std::vector<uint32_t>& perm)
|
||||
Transpose::Transpose(Graph* graph, const std::vector<uint32_t>& perm)
|
||||
: Operation(graph, VSI_NN_OP_PERMUTE), perm_(std::move(perm)) {
|
||||
this->impl()->node()->nn_param.permute.perm = perm_.data();
|
||||
this->impl()->node()->nn_param.permute.dim_num = perm_.size();
|
||||
Loading…
Reference in New Issue