BUILD 1.6 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. )
  10. py_test(
  11. name = "scopes_test",
  12. size = "small",
  13. srcs = ["scopes_test.py"],
  14. deps = [
  15. ":scopes",
  16. ],
  17. )
  18. py_library(
  19. name = "variables",
  20. srcs = ["variables.py"],
  21. deps = [
  22. ":scopes",
  23. ],
  24. )
  25. py_test(
  26. name = "variables_test",
  27. size = "small",
  28. srcs = ["variables_test.py"],
  29. deps = [
  30. ":variables",
  31. ],
  32. )
  33. py_library(
  34. name = "losses",
  35. srcs = ["losses.py"],
  36. )
  37. py_test(
  38. name = "losses_test",
  39. size = "small",
  40. srcs = ["losses_test.py"],
  41. deps = [
  42. ":losses",
  43. ],
  44. )
  45. py_library(
  46. name = "ops",
  47. srcs = ["ops.py"],
  48. deps = [
  49. ":losses",
  50. ":scopes",
  51. ":variables",
  52. ],
  53. )
  54. py_test(
  55. name = "ops_test",
  56. size = "small",
  57. srcs = ["ops_test.py"],
  58. deps = [
  59. ":ops",
  60. ":variables",
  61. ],
  62. )
  63. py_library(
  64. name = "inception",
  65. srcs = ["inception_model.py"],
  66. deps = [
  67. ":ops",
  68. ":scopes",
  69. ],
  70. )
  71. py_test(
  72. name = "inception_test",
  73. size = "medium",
  74. srcs = ["inception_test.py"],
  75. deps = [
  76. ":inception",
  77. ],
  78. )
  79. py_library(
  80. name = "slim",
  81. srcs = ["slim.py"],
  82. deps = [
  83. ":inception",
  84. ":losses",
  85. ":ops",
  86. ":scopes",
  87. ":variables",
  88. ],
  89. )
  90. py_test(
  91. name = "collections_test",
  92. size = "small",
  93. srcs = ["collections_test.py"],
  94. deps = [
  95. ":slim",
  96. ],
  97. )