"src/targets/gpu/vscode:/vscode.git/clone" did not exist on "b164ceefe87d235709e92640ca2541024cdb2a6c"
test_tan.cpp 485 Bytes
Newer Older
1
2
3
4

#include "verify_program.hpp"
#include <migraphx/program.hpp>
#include <migraphx/generate.hpp>
5
#include <migraphx/make_op.hpp>
6
7
8
9
10
11

struct test_tan : verify_program<test_tan>
{
    migraphx::program create_program() const
    {
        migraphx::program p;
12
        auto* mm = p.get_main_module();
13
        migraphx::shape s{migraphx::shape::float_type, {16}};
14
        auto x = mm->add_parameter("x", s);
15
        mm->add_instruction(migraphx::make_op("tan"), x);
16
17
18
        return p;
    }
};