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
86ecc973
Commit
86ecc973
authored
Dec 09, 2016
by
Neal Wu
Browse files
Moving example models from github.com/tensorflow/tensorflow to github.com/tensorflow/models
parent
e81ff571
Changes
45
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1006 additions
and
0 deletions
+1006
-0
tutorials/rnn/translate/BUILD
tutorials/rnn/translate/BUILD
+84
-0
tutorials/rnn/translate/__init__.py
tutorials/rnn/translate/__init__.py
+22
-0
tutorials/rnn/translate/data_utils.py
tutorials/rnn/translate/data_utils.py
+290
-0
tutorials/rnn/translate/seq2seq_model.py
tutorials/rnn/translate/seq2seq_model.py
+313
-0
tutorials/rnn/translate/translate.py
tutorials/rnn/translate/translate.py
+297
-0
No files found.
tutorials/rnn/translate/BUILD
0 → 100644
View file @
86ecc973
# Description:
# Example neural translation models.
package
(
default_visibility
=
[
"//visibility:public"
])
licenses
([
"notice"
])
# Apache 2.0
exports_files
([
"LICENSE"
])
py_library
(
name
=
"package"
,
srcs
=
[
"__init__.py"
,
],
srcs_version
=
"PY2AND3"
,
deps
=
[
":data_utils"
,
":seq2seq_model"
,
],
)
py_library
(
name
=
"data_utils"
,
srcs
=
[
"data_utils.py"
,
],
srcs_version
=
"PY2AND3"
,
deps
=
[
"//tensorflow:tensorflow_py"
],
)
py_library
(
name
=
"seq2seq_model"
,
srcs
=
[
"seq2seq_model.py"
,
],
srcs_version
=
"PY2AND3"
,
deps
=
[
":data_utils"
,
"//tensorflow:tensorflow_py"
,
],
)
py_binary
(
name
=
"translate"
,
srcs
=
[
"translate.py"
,
],
srcs_version
=
"PY2AND3"
,
deps
=
[
":data_utils"
,
":seq2seq_model"
,
"//tensorflow:tensorflow_py"
,
],
)
py_test
(
name
=
"translate_test"
,
size
=
"medium"
,
srcs
=
[
"translate.py"
,
],
args
=
[
"--self_test=True"
,
],
main
=
"translate.py"
,
srcs_version
=
"PY2AND3"
,
deps
=
[
":data_utils"
,
":seq2seq_model"
,
"//tensorflow:tensorflow_py"
,
],
)
filegroup
(
name
=
"all_files"
,
srcs
=
glob
(
[
"**/*"
],
exclude
=
[
"**/METADATA"
,
"**/OWNERS"
,
],
),
visibility
=
[
"//tensorflow:__subpackages__"
],
)
tutorials/rnn/translate/__init__.py
0 → 100644
View file @
86ecc973
# Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
"""Makes helper libraries available in the translate package."""
from
__future__
import
absolute_import
from
__future__
import
division
from
__future__
import
print_function
from
tensorflow.models.rnn.translate
import
data_utils
from
tensorflow.models.rnn.translate
import
seq2seq_model
tutorials/rnn/translate/data_utils.py
0 → 100644
View file @
86ecc973
This diff is collapsed.
Click to expand it.
tutorials/rnn/translate/seq2seq_model.py
0 → 100644
View file @
86ecc973
This diff is collapsed.
Click to expand it.
tutorials/rnn/translate/translate.py
0 → 100644
View file @
86ecc973
This diff is collapsed.
Click to expand it.
Prev
1
2
3
Next
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