"awq/models/qwen2.py" did not exist on "661047f119c82324fcda3dbe11eaf5b7e233a359"
test_tan.cpp 482 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11

#include "verify_program.hpp"
#include <migraphx/program.hpp>
#include <migraphx/generate.hpp>
#include <migraphx/operators.hpp>

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
15
        auto x = mm->add_parameter("x", s);
        mm->add_instruction(migraphx::op::tan{}, x);
16
17
18
        return p;
    }
};