mirror of https://github.com/alibaba/MNN.git
32 lines
658 B
C++
32 lines
658 B
C++
|
//
|
||
|
// MetalSoftmax.hpp
|
||
|
// MNN
|
||
|
//
|
||
|
// Created by MNN on 2019/01/30.
|
||
|
// Copyright © 2018, Alibaba Group Holding Limited
|
||
|
//
|
||
|
|
||
|
#ifndef MetalSoftmax_hpp
|
||
|
#define MetalSoftmax_hpp
|
||
|
|
||
|
#import "Execution.hpp"
|
||
|
#import "MNN_generated.h"
|
||
|
#import "MetalDefine.h"
|
||
|
|
||
|
#if MNN_METAL_ENABLED
|
||
|
namespace MNN {
|
||
|
|
||
|
class MetalSoftmax : public Execution {
|
||
|
public:
|
||
|
MetalSoftmax(Backend *backend, int32_t axis);
|
||
|
virtual ~MetalSoftmax() = default;
|
||
|
virtual ErrorCode onExecute(const std::vector<Tensor *> &inputs, const std::vector<Tensor *> &outputs) override;
|
||
|
|
||
|
private:
|
||
|
int32_t mAxis;
|
||
|
};
|
||
|
|
||
|
} // namespace MNN
|
||
|
#endif /* MNN_METAL_ENABLED */
|
||
|
#endif /* MetalSoftmax_hpp */
|