Unverified Commit 18234a58 authored by Umang Yadav's avatar Umang Yadav Committed by GitHub
Browse files

fix overflow for workspace size (#1446)

parent 1820198e
...@@ -64,7 +64,7 @@ std::size_t compile_miopen::compile(operation& op, instruction_ref ins, bool for ...@@ -64,7 +64,7 @@ std::size_t compile_miopen::compile(operation& op, instruction_ref ins, bool for
{ {
op.from_value({{"int8_x4_format", format}}); op.from_value({{"int8_x4_format", format}});
auto v = op.compile(*ctx, ins->get_shape(), to_shapes(ins->inputs())); auto v = op.compile(*ctx, ins->get_shape(), to_shapes(ins->inputs()));
return v.get("workspace", 0); return v.get<std::size_t>("workspace", 0);
} }
void compile_miopen::apply(module& m) const void compile_miopen::apply(module& m) const
......
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