Error when compiling a Sum node

Error Description

I have a simple model with only a Sum node taking as input three constant values, with shape (1, 1), (2, 2), and (2, 2) respectively. However, Glow cannot compile it, whereas onnxruntime can successfully run it and output the expected value.

The model definition viewed in https://www.netron.app/ is like this:

When compiled with the command [where your glow-build resides]/glow-build/bin/model-compiler -backend=CPU -model=model.onnx -emit-bundle=build -network-name=model, Glow outputs the following error message:

Concat
name : Sum_7
Dim : 0
users : 1
Inputs0 : float<1 x 1 x 1>
Inputs1 : float<1 x 2 x 2>
Inputs2 : float<1 x 2 x 2>
Result : float<3 x 1 x 1>

Mismatching dimension 1 for input 0 and 1
For comparison `LHS Equal RHS` with:
LHS: 1
RHS: 2
Concat
name : Sum_7
Dim : 0
users : 1
Inputs0 : float<1 x 1 x 1>
Inputs1 : float<1 x 2 x 2>
Inputs2 : float<1 x 2 x 2>
Result : float<3 x 1 x 1>

Mismatching dimension 2 for input 0 and 1
For comparison `LHS Equal RHS` with:
LHS: 1
RHS: 2
Concat
name : Sum_7
Dim : 0
users : 1
Inputs0 : float<1 x 1 x 1>
Inputs1 : float<1 x 2 x 2>
Inputs2 : float<1 x 2 x 2>
Result : float<3 x 1 x 1>

Mismatching dimension 1 for input 0 and 2
For comparison `LHS Equal RHS` with:
LHS: 1
RHS: 2
Concat
name : Sum_7
Dim : 0
users : 1
Inputs0 : float<1 x 1 x 1>
Inputs1 : float<1 x 2 x 2>
Inputs2 : float<1 x 2 x 2>
Result : float<3 x 1 x 1>

Mismatching dimension 2 for input 0 and 2
For comparison `LHS Equal RHS` with:
LHS: 1
RHS: 2
Concat
name : Sum_7
Dim : 0
users : 1
Inputs0 : float<1 x 1 x 1>
Inputs1 : float<1 x 2 x 2>
Inputs2 : float<1 x 2 x 2>
Result : float<3 x 1 x 1>

Mismatching dimension 1 for input 0 and 1
For comparison `LHS Equal RHS` with:
LHS: 1
RHS: 2
Concat
name : Sum_7
Dim : 0
users : 1
Inputs0 : float<1 x 1 x 1>
Inputs1 : float<1 x 2 x 2>
Inputs2 : float<1 x 2 x 2>
Result : float<3 x 1 x 1>

Mismatching dimension 2 for input 0 and 1
For comparison `LHS Equal RHS` with:
LHS: 1
RHS: 2
Concat
name : Sum_7
Dim : 0
users : 1
Inputs0 : float<1 x 1 x 1>
Inputs1 : float<1 x 2 x 2>
Inputs2 : float<1 x 2 x 2>
Result : float<3 x 1 x 1>

Mismatching dimension 1 for input 0 and 2
For comparison `LHS Equal RHS` with:
LHS: 1
RHS: 2
Concat
name : Sum_7
Dim : 0
users : 1
Inputs0 : float<1 x 1 x 1>
Inputs1 : float<1 x 2 x 2>
Inputs2 : float<1 x 2 x 2>
Result : float<3 x 1 x 1>

Mismatching dimension 2 for input 0 and 2
For comparison `LHS Equal RHS` with:
LHS: 1
RHS: 2
WARNING: Logging before InitGoogleLogging() is written to STDERR
F0807 15:45:15.207857 43561 Error.cpp:121] exitOnError(Error) got an unexpected ErrorValue: 
Error message: Function verification failed.

How To Reproduce

You can download the package at https://drive.google.com/file/d/1jFtfIVAMw76qctM_mhFfPxr_4geCWpuV/view?usp=sharing. After unzipping it, you can follow the steps in README.md to reproduce the results.

System Information:

Glow version: built from GitHub source commit 07a82bd9fe97dfd2e8ea0f4742dce5ce86177c2b

onnxruntime version: 1.7.0

onnx version: 1.9.0

Operation system: Ubuntu 18.04LTS

CPU: Intel(R) Xeon(R) CPU E5-2683 v4 @ 2.10GHz 16 cores