"src/vscode:/vscode.git/clone" did not exist on "5f215b71a31b83fc39012eb5e467319b29872f55"
context_test.cpp 455 Bytes
Newer Older
Shucai Xiao's avatar
Shucai Xiao committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <migraphx/serialize.hpp>
#include <migraphx/context.hpp>
#include <migraphx/cpu/context.hpp>
#include <migraphx/functional.hpp>
#include <test.hpp>

TEST_CASE(context)
{
    migraphx::context ctx = migraphx::cpu::context{};
    migraphx::value v     = ctx.to_value();
    EXPECT(v.empty());

    migraphx::context cpu_ctx = migraphx::cpu::context{};
    cpu_ctx.from_value(v);
}

int main(int argc, const char* argv[]) { test::run(argc, argv); }