Skip to content

Instantly share code, notes, and snippets.

@kevinrobinson
Created December 10, 2015 04:02
Show Gist options
  • Select an option

  • Save kevinrobinson/2dc85367f215b928a2cf to your computer and use it in GitHub Desktop.

Select an option

Save kevinrobinson/2dc85367f215b928a2cf to your computer and use it in GitHub Desktop.
TEST_F(SubgraphTest, Targets1) {
ExpectOK(
"node { name: 'W1' op: 'TestParams' }"
"node { name: 'W2' op: 'TestParams' }"
"node { name: 'input' op: 'TestInput' }"
"node { name: 't1' op: 'TestMul' input: [ 'W1', 'input:1' ] }"
"node { name: 't2' op: 'TestMul' input: [ 'W2', 't1' ] }"
"node { name: 't3_a' op: 'TestRelu' input: 't2' }"
"node { name: 't3_b' op: 'TestRelu' input: 't2' }");
EXPECT_EQ("OK", Subgraph("", "", "t1"));
ExpectNodes("W1,input,t1");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment