"...targets/git@developer.sourcefind.cn:gaoqiong/migraphx.git" did not exist on "8a7a2c1cb139da80450192273844a1ab605532af"
Commit 2dc425d2 authored by Khalique's avatar Khalique
Browse files

add tanh and test

parent 2a2c146c
......@@ -111,6 +111,7 @@ struct tf_parser
add_generic_op("Identity", op::identity{});
add_generic_op("Relu", op::relu{});
add_generic_op("Relu6", op::clip{6.0, 0.0});
add_generic_op("Tanh", op::tanh{});
add_binary_op("Add", op::add{});
add_binary_op("Mul", op::mul{});
......
:
0 Placeholder*
dtype0*
shape:

tanhTanh0*
T0"
\ No newline at end of file
......@@ -359,4 +359,14 @@ TEST_CASE(stridedslice_test)
EXPECT(p == prog);
}
TEST_CASE(tanh_test)
{
migraphx::program p;
auto l0 = p.add_parameter("0", migraphx::shape{migraphx::shape::float_type, {1, 3, 16, 16}});
p.add_instruction(migraphx::op::tanh{}, l0);
auto prog = migraphx::parse_tf("tanh_test.pb", false);
EXPECT(p == prog);
}
int main(int argc, const char* argv[]) { test::run(argc, argv); }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment