Program Listing for File non_zero.h
↰ Return to documentation for file (include/converter/include/ops/non_zero.h
)
#ifndef MINDSPORE_CORE_OPS_NON_ZERO_H_
#define MINDSPORE_CORE_OPS_NON_ZERO_H_
#include <memory>
#include <vector>
#include "abstract/abstract_value.h"
#include "mindapi/base/types.h"
#include "ops/base_operator.h"
#include "ops/primitive_c.h"
namespace mindspore {
namespace ops {
constexpr auto kNameNonZero = "NonZero";
class MIND_API NonZero : public BaseOperator {
public:
MIND_API_BASE_MEMBER(NonZero);
NonZero() : BaseOperator(kNameNonZero) { InitIOName({"x"}, {"output"}); }
};
AbstractBasePtr NonZeroInfer(const abstract::AnalysisEnginePtr &, const PrimitivePtr &primitive,
const std::vector<AbstractBasePtr> &input_args);
using PrimNonZeroPtr = std::shared_ptr<NonZero>;
} // namespace ops
} // namespace mindspore
#endif // MINDSPORE_CORE_OPS_NON_ZERO_H_