You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix graph rendering issue for tensors with zero dimension size (#6420)
A zero dimension tensor results in a proto with an empty `size` field,
as seen below:
```
node {
name: "input/b"
op: "IO Node"
attr {
key: "attr"
value {
s: ""
}
}
attr {
key: "_output_shapes"
value {
list {
shape {
dim {
size: 1
}
dim { <<<
}
}
}
}
}
}
```
This results in `dim.size` returning null for these particular cases,
breaking graph rendering. We update to default the null case to 0.
Fixes#6418
0 commit comments