Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
bc70271a
Commit
bc70271a
authored
Feb 24, 2017
by
Ivan Bogatyy
Committed by
calberti
Feb 24, 2017
Browse files
Fix Bazel version check (#1069)
parent
87a8abd4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
11 deletions
+2
-11
syntaxnet/WORKSPACE
syntaxnet/WORKSPACE
+2
-3
syntaxnet/syntaxnet/syntaxnet.bzl
syntaxnet/syntaxnet/syntaxnet.bzl
+0
-8
No files found.
syntaxnet/WORKSPACE
View file @
bc70271a
...
...
@@ -6,8 +6,7 @@ local_repository(
load
(
"@org_tensorflow//tensorflow:workspace.bzl"
,
"tf_workspace"
)
tf_workspace
(
path_prefix
=
""
,
tf_repo_name
=
"org_tensorflow"
)
# Test that Bazel is the correct release, tested for compatibility with the
# current SyntaxNet snapshot.
load
(
"//syntaxnet:syntaxnet.bzl"
,
"check_version"
)
# Test that Bazel is up-to-date.
load
(
"@org_tensorflow//tensorflow:workspace.bzl"
,
"check_version"
)
check_version
(
"0.4.3"
)
syntaxnet/syntaxnet/syntaxnet.bzl
View file @
bc70271a
...
...
@@ -16,14 +16,6 @@
load
(
"@protobuf//:protobuf.bzl"
,
"cc_proto_library"
)
load
(
"@protobuf//:protobuf.bzl"
,
"py_proto_library"
)
def
check_version
(
expected_version
):
current_version
=
native
.
bazel_version
.
split
(
" "
)[
0
].
split
(
"-"
)[
0
]
if
current_version
!=
expected_version
:
fail
(
"
\n
Current Bazel version is {}, expected {}.
\n
"
.
format
(
current_version
,
expected_version
)
+
"To try anyway, remove check_version() call from syntaxnet/WORKSPACE"
)
else
:
print
(
"Bazel OK"
)
def
if_cuda
(
if_true
,
if_false
=
[]):
"""Shorthand for select()'ing on whether we're building with CUDA."""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment