"src/targets/vscode:/vscode.git/clone" did not exist on "2b0b77f123a0f93f15b04a490a7494151ad86cb3"
Unverified Commit c8c6bf28 authored by mvermeulen's avatar mvermeulen Committed by GitHub
Browse files

Merge pull request #313 from ROCmSoftwarePlatform/propogate-broadcast

Propagate broadcast
parents ebfe9735 d5685340
......@@ -10,8 +10,8 @@ inline namespace MIGRAPHX_INLINE_NS {
bool skip_propogate(instruction_ref ins)
{
if(ins->name() == "@literal")
return true;
if(ins->name() == "contiguous")
return skip_propogate(ins->inputs().front());
auto&& s = ins->get_shape();
if(s.broadcasted() and not s.scalar())
return true;
......@@ -33,7 +33,7 @@ void propagate_constant::apply(program& p) const
ins->outputs().end());
for(auto child : children)
{
if(skip_propogate(child))
if(child->name() == "@literal" or skip_propogate(child))
{
self(child);
continue;
......
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