Skip to content

Instantly share code, notes, and snippets.

@Ouwen
Created July 25, 2018 18:30
Show Gist options
  • Save Ouwen/e656b9114ba146a49b2a0c2d870e5049 to your computer and use it in GitHub Desktop.
Save Ouwen/e656b9114ba146a49b2a0c2d870e5049 to your computer and use it in GitHub Desktop.
Graph Protobuf Text Representation
node {
name: "input"
op: "Const"
attr {
key: "dtype"
value {
type: DT_FLOAT
}
}
attr {
key: "value"
value {
tensor {
dtype: DT_FLOAT
tensor_shape {
}
float_val: 2.0
}
}
}
}
node {
name: "A"
op: "Square"
input: "input"
attr {
key: "T"
value {
type: DT_FLOAT
}
}
}
node {
name: "B"
op: "Cos"
input: "A"
attr {
key: "T"
value {
type: DT_FLOAT
}
}
}
node {
name: "C"
op: "Sin"
input: "A"
attr {
key: "T"
value {
type: DT_FLOAT
}
}
}
node {
name: "D"
op: "Add"
input: "B"
input: "C"
attr {
key: "T"
value {
type: DT_FLOAT
}
}
}
node {
name: "E"
op: "Floor"
input: "B"
attr {
key: "T"
value {
type: DT_FLOAT
}
}
}
node {
name: "F"
op: "Sqrt"
input: "D"
attr {
key: "T"
value {
type: DT_FLOAT
}
}
}
versions {
producer: 26
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment