BUILD 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. # Description:
  2. # Contains the operations and nets for building TensorFlow-Slim models.
  3. package(default_visibility = ["//inception:internal"])
  4. licenses(["notice"]) # Apache 2.0
  5. exports_files(["LICENSE"])
  6. py_library(
  7. name = "scopes",
  8. srcs = ["scopes.py"],
  9. deps = [
  10. "@tf//tensorflow:tensorflow_py",
  11. ],
  12. )
  13. py_test(
  14. name = "scopes_test",
  15. size = "small",
  16. srcs = ["scopes_test.py"],
  17. deps = [
  18. ":scopes",
  19. ],
  20. )
  21. py_library(
  22. name = "variables",
  23. srcs = ["variables.py"],
  24. deps = [
  25. "@tf//tensorflow:tensorflow_py",
  26. ":scopes",
  27. ],
  28. )
  29. py_test(
  30. name = "variables_test",
  31. size = "small",
  32. srcs = ["variables_test.py"],
  33. deps = [
  34. ":variables",
  35. ],
  36. )
  37. py_library(
  38. name = "losses",
  39. srcs = ["losses.py"],
  40. deps = [
  41. "@tf//tensorflow:tensorflow_py",
  42. ],
  43. )
  44. py_test(
  45. name = "losses_test",
  46. size = "small",
  47. srcs = ["losses_test.py"],
  48. deps = [
  49. ":losses",
  50. ],
  51. )
  52. py_library(
  53. name = "ops",
  54. srcs = ["ops.py"],
  55. deps = [
  56. "@tf//tensorflow:tensorflow_py",
  57. ":losses",
  58. ":scopes",
  59. ":variables",
  60. ],
  61. )
  62. py_test(
  63. name = "ops_test",
  64. size = "small",
  65. srcs = ["ops_test.py"],
  66. deps = [
  67. ":ops",
  68. ":variables",
  69. ],
  70. )
  71. py_library(
  72. name = "inception",
  73. srcs = ["inception_model.py"],
  74. deps = [
  75. "@tf//tensorflow:tensorflow_py",
  76. ":ops",
  77. ":scopes",
  78. ],
  79. )
  80. py_test(
  81. name = "inception_test",
  82. size = "medium",
  83. srcs = ["inception_test.py"],
  84. deps = [
  85. ":inception",
  86. ],
  87. )
  88. py_library(
  89. name = "slim",
  90. srcs = ["slim.py"],
  91. deps = [
  92. ":inception",
  93. ":losses",
  94. ":ops",
  95. ":scopes",
  96. ":variables",
  97. ],
  98. )