Id of LeakyRelu operation was incorrectly set as ReLU
Signed-off-by: Vladimir Plazun <v.plazun@partner.samsung.com>
class LeakyReluOp : public Operation {
public:
explicit LeakyReluOp(const IODescriptor& arg, float alpha)
- : Operation(Type::ReLU, {arg}), _alpha(alpha) {
+ : Operation(Type::leakyReLU, {arg}), _alpha(alpha) {
// Infer output shape.
setOutputShape(0, getInputShape(0));
}
return g.create<mir::ops::LeakyReluOp>("y", inputs[0], 0.1);
};
- createAndRunTestGraph(op_generator, relu, input_ntensors, input_atensor);
+ createAndRunTestGraph(op_generator, leakyRelu, input_ntensors, input_atensor);
}
TEST(cpp_operations_test, sigmoid) {