WORKSPACE 847 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. local_repository(
  2. name = "tf",
  3. path = __workspace_dir__ + "/tensorflow",
  4. )
  5. load('//tensorflow/tensorflow:workspace.bzl', 'tf_workspace')
  6. tf_workspace("tensorflow/")
  7. # grpc expects //external:protobuf_clib and //external:protobuf_compiler
  8. # to point to the protobuf's compiler library.
  9. bind(
  10. name = "protobuf_clib",
  11. actual = "@tf//google/protobuf:protoc_lib",
  12. )
  13. bind(
  14. name = "protobuf_compiler",
  15. actual = "@tf//google/protobuf:protoc_lib",
  16. )
  17. git_repository(
  18. name = "grpc",
  19. commit = "73979f4",
  20. init_submodules = True,
  21. remote = "https://github.com/grpc/grpc.git",
  22. )
  23. # protobuf expects //external:grpc_cpp_plugin to point to grpc's
  24. # C++ plugin code generator.
  25. bind(
  26. name = "grpc_cpp_plugin",
  27. actual = "@grpc//:grpc_cpp_plugin",
  28. )
  29. bind(
  30. name = "grpc_lib",
  31. actual = "@grpc//:grpc++_unsecure",
  32. )