|
|
@ -63,6 +63,202 @@ class LogicalNotInfo : public ActivationOther {
|
|
|
|
: ActivationOther(name, inputs_shape, outputs_shape, attrs) {}
|
|
|
|
: ActivationOther(name, inputs_shape, outputs_shape, attrs) {}
|
|
|
|
~LogicalNotInfo() override = default;
|
|
|
|
~LogicalNotInfo() override = default;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class AbsInfo : public ActivationOther {
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
AbsInfo(const std::string &name, const Shapes &inputs_shape, const Shapes &outputs_shape, const PrimitiveAttrs &attrs)
|
|
|
|
|
|
|
|
: ActivationOther(name, inputs_shape, outputs_shape, attrs) {}
|
|
|
|
|
|
|
|
~AbsInfo() override = default;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class SignInfo : public ActivationOther {
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
SignInfo(const std::string &name, const Shapes &inputs_shape, const Shapes &outputs_shape,
|
|
|
|
|
|
|
|
const PrimitiveAttrs &attrs)
|
|
|
|
|
|
|
|
: ActivationOther(name, inputs_shape, outputs_shape, attrs) {}
|
|
|
|
|
|
|
|
~SignInfo() override = default;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class FloorInfo : public ActivationOther {
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
FloorInfo(const std::string &name, const Shapes &inputs_shape, const Shapes &outputs_shape,
|
|
|
|
|
|
|
|
const PrimitiveAttrs &attrs)
|
|
|
|
|
|
|
|
: ActivationOther(name, inputs_shape, outputs_shape, attrs) {}
|
|
|
|
|
|
|
|
~FloorInfo() override = default;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class RoundInfo : public ActivationOther {
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
RoundInfo(const std::string &name, const Shapes &inputs_shape, const Shapes &outputs_shape,
|
|
|
|
|
|
|
|
const PrimitiveAttrs &attrs)
|
|
|
|
|
|
|
|
: ActivationOther(name, inputs_shape, outputs_shape, attrs) {}
|
|
|
|
|
|
|
|
~RoundInfo() override = default;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class ReciprocalInfo : public ActivationOther {
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
ReciprocalInfo(const std::string &name, const Shapes &inputs_shape, const Shapes &outputs_shape,
|
|
|
|
|
|
|
|
const PrimitiveAttrs &attrs)
|
|
|
|
|
|
|
|
: ActivationOther(name, inputs_shape, outputs_shape, attrs) {}
|
|
|
|
|
|
|
|
~ReciprocalInfo() override = default;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class InvInfo : public ActivationOther {
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
InvInfo(const std::string &name, const Shapes &inputs_shape, const Shapes &outputs_shape, const PrimitiveAttrs &attrs)
|
|
|
|
|
|
|
|
: ActivationOther(name, inputs_shape, outputs_shape, attrs) {}
|
|
|
|
|
|
|
|
~InvInfo() override = default;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class RsqrtInfo : public ActivationOther {
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
RsqrtInfo(const std::string &name, const Shapes &inputs_shape, const Shapes &outputs_shape,
|
|
|
|
|
|
|
|
const PrimitiveAttrs &attrs)
|
|
|
|
|
|
|
|
: ActivationOther(name, inputs_shape, outputs_shape, attrs) {}
|
|
|
|
|
|
|
|
~RsqrtInfo() override = default;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class TanInfo : public ActivationOther {
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
TanInfo(const std::string &name, const Shapes &inputs_shape, const Shapes &outputs_shape, const PrimitiveAttrs &attrs)
|
|
|
|
|
|
|
|
: ActivationOther(name, inputs_shape, outputs_shape, attrs) {}
|
|
|
|
|
|
|
|
~TanInfo() override = default;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class SinInfo : public ActivationOther {
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
SinInfo(const std::string &name, const Shapes &inputs_shape, const Shapes &outputs_shape, const PrimitiveAttrs &attrs)
|
|
|
|
|
|
|
|
: ActivationOther(name, inputs_shape, outputs_shape, attrs) {}
|
|
|
|
|
|
|
|
~SinInfo() override = default;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class SinhInfo : public ActivationOther {
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
SinhInfo(const std::string &name, const Shapes &inputs_shape, const Shapes &outputs_shape,
|
|
|
|
|
|
|
|
const PrimitiveAttrs &attrs)
|
|
|
|
|
|
|
|
: ActivationOther(name, inputs_shape, outputs_shape, attrs) {}
|
|
|
|
|
|
|
|
~SinhInfo() override = default;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Log1pInfo : public ActivationOther {
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
Log1pInfo(const std::string &name, const Shapes &inputs_shape, const Shapes &outputs_shape,
|
|
|
|
|
|
|
|
const PrimitiveAttrs &attrs)
|
|
|
|
|
|
|
|
: ActivationOther(name, inputs_shape, outputs_shape, attrs) {}
|
|
|
|
|
|
|
|
~Log1pInfo() override = default;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Expm1Info : public ActivationOther {
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
Expm1Info(const std::string &name, const Shapes &inputs_shape, const Shapes &outputs_shape,
|
|
|
|
|
|
|
|
const PrimitiveAttrs &attrs)
|
|
|
|
|
|
|
|
: ActivationOther(name, inputs_shape, outputs_shape, attrs) {}
|
|
|
|
|
|
|
|
~Expm1Info() override = default;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CoshInfo : public ActivationOther {
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
CoshInfo(const std::string &name, const Shapes &inputs_shape, const Shapes &outputs_shape,
|
|
|
|
|
|
|
|
const PrimitiveAttrs &attrs)
|
|
|
|
|
|
|
|
: ActivationOther(name, inputs_shape, outputs_shape, attrs) {}
|
|
|
|
|
|
|
|
~CoshInfo() override = default;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CeilInfo : public ActivationOther {
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
CeilInfo(const std::string &name, const Shapes &inputs_shape, const Shapes &outputs_shape,
|
|
|
|
|
|
|
|
const PrimitiveAttrs &attrs)
|
|
|
|
|
|
|
|
: ActivationOther(name, inputs_shape, outputs_shape, attrs) {}
|
|
|
|
|
|
|
|
~CeilInfo() override = default;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class AtanhInfo : public ActivationOther {
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
AtanhInfo(const std::string &name, const Shapes &inputs_shape, const Shapes &outputs_shape,
|
|
|
|
|
|
|
|
const PrimitiveAttrs &attrs)
|
|
|
|
|
|
|
|
: ActivationOther(name, inputs_shape, outputs_shape, attrs) {}
|
|
|
|
|
|
|
|
~AtanhInfo() override = default;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class AtanInfo : public ActivationOther {
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
AtanInfo(const std::string &name, const Shapes &inputs_shape, const Shapes &outputs_shape,
|
|
|
|
|
|
|
|
const PrimitiveAttrs &attrs)
|
|
|
|
|
|
|
|
: ActivationOther(name, inputs_shape, outputs_shape, attrs) {}
|
|
|
|
|
|
|
|
~AtanInfo() override = default;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class AsinInfo : public ActivationOther {
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
AsinInfo(const std::string &name, const Shapes &inputs_shape, const Shapes &outputs_shape,
|
|
|
|
|
|
|
|
const PrimitiveAttrs &attrs)
|
|
|
|
|
|
|
|
: ActivationOther(name, inputs_shape, outputs_shape, attrs) {}
|
|
|
|
|
|
|
|
~AsinInfo() override = default;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class AsinhInfo : public ActivationOther {
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
AsinhInfo(const std::string &name, const Shapes &inputs_shape, const Shapes &outputs_shape,
|
|
|
|
|
|
|
|
const PrimitiveAttrs &attrs)
|
|
|
|
|
|
|
|
: ActivationOther(name, inputs_shape, outputs_shape, attrs) {}
|
|
|
|
|
|
|
|
~AsinhInfo() override = default;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class AcoshInfo : public ActivationOther {
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
AcoshInfo(const std::string &name, const Shapes &inputs_shape, const Shapes &outputs_shape,
|
|
|
|
|
|
|
|
const PrimitiveAttrs &attrs)
|
|
|
|
|
|
|
|
: ActivationOther(name, inputs_shape, outputs_shape, attrs) {}
|
|
|
|
|
|
|
|
~AcoshInfo() override = default;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class ErfInfo : public ActivationOther {
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
ErfInfo(const std::string &name, const Shapes &inputs_shape, const Shapes &outputs_shape, const PrimitiveAttrs &attrs)
|
|
|
|
|
|
|
|
: ActivationOther(name, inputs_shape, outputs_shape, attrs) {}
|
|
|
|
|
|
|
|
~ErfInfo() override = default;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class ErfcInfo : public ActivationOther {
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
ErfcInfo(const std::string &name, const Shapes &inputs_shape, const Shapes &outputs_shape,
|
|
|
|
|
|
|
|
const PrimitiveAttrs &attrs)
|
|
|
|
|
|
|
|
: ActivationOther(name, inputs_shape, outputs_shape, attrs) {}
|
|
|
|
|
|
|
|
~ErfcInfo() override = default;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class ZerosLikeInfo : public ActivationOther {
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
ZerosLikeInfo(const std::string &name, const Shapes &inputs_shape, const Shapes &outputs_shape,
|
|
|
|
|
|
|
|
const PrimitiveAttrs &attrs)
|
|
|
|
|
|
|
|
: ActivationOther(name, inputs_shape, outputs_shape, attrs) {}
|
|
|
|
|
|
|
|
~ZerosLikeInfo() override = default;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class OnesLikeInfo : public ActivationOther {
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
OnesLikeInfo(const std::string &name, const Shapes &inputs_shape, const Shapes &outputs_shape,
|
|
|
|
|
|
|
|
const PrimitiveAttrs &attrs)
|
|
|
|
|
|
|
|
: ActivationOther(name, inputs_shape, outputs_shape, attrs) {}
|
|
|
|
|
|
|
|
~OnesLikeInfo() override = default;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class BesselI0eInfo : public ActivationOther {
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
BesselI0eInfo(const std::string &name, const Shapes &inputs_shape, const Shapes &outputs_shape,
|
|
|
|
|
|
|
|
const PrimitiveAttrs &attrs)
|
|
|
|
|
|
|
|
: ActivationOther(name, inputs_shape, outputs_shape, attrs) {}
|
|
|
|
|
|
|
|
~BesselI0eInfo() override = default;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class BesselI1eInfo : public ActivationOther {
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
BesselI1eInfo(const std::string &name, const Shapes &inputs_shape, const Shapes &outputs_shape,
|
|
|
|
|
|
|
|
const PrimitiveAttrs &attrs)
|
|
|
|
|
|
|
|
: ActivationOther(name, inputs_shape, outputs_shape, attrs) {}
|
|
|
|
|
|
|
|
~BesselI1eInfo() override = default;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace parallel
|
|
|
|
} // namespace parallel
|
|
|
|
} // namespace mindspore
|
|
|
|
} // namespace mindspore
|
|
|
|
|
|
|
|
|
|
|
|