Skip to content

Instantly share code, notes, and snippets.

@ruoyu0088
Created October 15, 2018 22:54
Show Gist options
  • Save ruoyu0088/f963b80cb66874f7fbc879fd9cdc42fc to your computer and use it in GitHub Desktop.
Save ruoyu0088/f963b80cb66874f7fbc879fd9cdc42fc to your computer and use it in GitHub Desktop.
digraph g {
graph [
rankdir = "LR"
];
node [
fontsize = "16"
shape = "ellipse"
];
edge [
];
list [
label = "<f0> list header| <a> | <b> | <c>"
shape = "record"
];
a [
label = "<f0> float header| 1.0"
shape = "record"
];
b [
label = "<f0> float header| 2.0"
shape = "record"
];
c [
label = "<f0> float header| 3.0"
shape = "record"
];
list:a -> a;
list:b -> b;
list:c -> c;
}
digraph g {
graph [
rankdir = "LR"
];
node [
fontsize = "16"
shape = "ellipse"
];
edge [
];
array [
label = "<f0> array header | <item> item | <descr> descr"
shape = "record"
];
items [
label = "1.0 | 2.0 | 3.0 | empty | empty | empty"
shape = "record"
];
descr [
label = arraydescr
shape = "record"
];
array:item -> items;
array:descr -> descr;
}
digraph g {
graph [
rankdir = "LR"
];
node [
fontsize = "16"
shape = "ellipse"
];
edge [
];
ndarray [
label = "<f0> ndarray header | <dtype> dtype | dim 2 | <dimensions> dimensions | <strides> strides | <data> data"
shape = "record"
];
shape [
label = "{<f0> 3 | 3}"
shape = "record"
];
strides [
label = "{<f0> 12 | 4}"
shape = "record"
];
data [
label = "{<f0> 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8}"
shape = "record"
];
dtype [
label = float32
shape = "record"
];
ndarray:data -> data:f0;
ndarray:dtype -> dtype;
ndarray:dimensions -> shape:f0;
ndarray:strides -> strides;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment