Skip to content

Instantly share code, notes, and snippets.

@kevinrobinson
Last active August 6, 2017 19:03
Show Gist options
  • Select an option

  • Save kevinrobinson/879f00074105399a3625 to your computer and use it in GitHub Desktop.

Select an option

Save kevinrobinson/879f00074105399a3625 to your computer and use it in GitHub Desktop.
TEST_F(GraphPartitionTest, CrossDeviceData) {
using namespace ::tensorflow::ops; // NOLINT(build/namespaces)
Node* a1 = Input(in_.opts().WithName("A1"));
Node* b1 = Input(in_.opts().WithName("B1"));
Cross(a1, b1, in_.opts().WithName("B2"));
Partition(ToGraphDef(), &partitions_);
EXPECT_EQ(2, partitions_.size());
// ... there’s some addition assertions, but they require a bit of unwinding
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment