Skip to content

Commit

Permalink
TF Hub subsite layout
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 203153860
  • Loading branch information
TensorFlow Hub Authors authored and andresusanopinto committed Jul 10, 2018
1 parent bcb408f commit f9c4bcd
Show file tree
Hide file tree
Showing 6 changed files with 165 additions and 123 deletions.
53 changes: 53 additions & 0 deletions docs/_book.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
upper_tabs:
# Tabs left of dropdown menu
- include: /_upper_tabs_left.yaml
# Dropdown menu
- name: Ecosystem
path: /ecosystem
is_default: True
menu:
- include: /ecosystem/_menu_toc.yaml
lower_tabs:
# Subsite tabs
other:
- name: Guide
contents:
- title: Overview
path: /hub/overview
- title: Installation
path: /hub/installation
- heading: Key Concepts
- title: Using a Module
path: /hub/basics
- title: Creating a New Module
path: /hub/creating
- title: Fine-Tuning
path: /hub/fine_tuning
- title: Hosting a Module
path: /hub/hosting
- heading: Tutorials
- title: Image Retraining
path: /hub/tutorials/image_retraining
- title: Text Classification
path: /hub/tutorials/text_classification_with_tf_hub
- heading: Common Signatures
- title: Overview
path: /hub/common_signatures/
- title: Common Signatures for Images
path: /hub/common_signatures/images
- title: Common Signatures for Text
path: /hub/common_signatures/text
- name: API
contents:
- include: /hub/api_docs/python/_toc.yaml
- name: Modules
contents:
- title: Overview
path: /hub/modules/
- title: Image Modules
path: /hub/modules/image
- title: Text Modules
path: /hub/modules/text
- title: Other Modules
path: /hub/modules/other
- include: /hub/modules/_toc.yaml
59 changes: 59 additions & 0 deletions docs/_index.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
book_path: /hub/_book.yaml
project_path: /hub/_project.yaml
description: <!--no description-->
landing_page:
custom_css_path: /site-assets/style.css
rows:
- heading: >
TensorFlow Hub is a library for reusable machine learning modules.
items:
- description: >
TensorFlow Hub is a library for the publication, discovery, and
consumption of reusable parts of machine learning models. A
<em>module</em> is a self-contained piece of a TensorFlow graph, along
with its weights and assets, that can be reused across different tasks in
a process known as transfer learning. Transfer learning can:
<ul style="padding-left: 20px;">
<li>Train a model with a smaller dataset,</li>
<li>Improve generalization, and</li>
<li>Speed up training.</li>
</ul>
- classname: tfo-landing-row-item-code-block
code_block: |
<pre class = "prettyprint">
import tensorflow as tf
import tensorflow_hub as hub
with tf.Graph().as_default():
module_url = "https://tfhub.dev/google/nnlm-en-dim128-with-normalization/1"
embed = hub.Module(module_url)
embeddings = embed(["A long sentence.", "single-word",
"http://example.com"])
with tf.Session() as sess:
sess.run(tf.global_variables_initializer())
sess.run(tf.tables_initializer())
print(sess.run(embeddings))
</pre>
- classname: devsite-landing-row-cards
items:
- heading: Introducing TensorFlow Hub
image_path: /ecosystem/images/tf-logo-card-16x9.png
path: https://medium.com/tensorflow/introducing-tensorflow-hub-a-library-for-reusable-machine-learning-modules-in-tensorflow-cdee41fa18f9
buttons:
- label: Read on TensorFlow blog
path: https://medium.com/tensorflow/introducing-tensorflow-hub-a-library-for-reusable-machine-learning-modules-in-tensorflow-cdee41fa18f9
- heading: TensorFlow Hub at the Dev Summit
youtube_id: rirzJ-e68cw
buttons:
- label: Watch the video
path: https://www.youtube.com/watch?v=rirzJ-e68cw
- heading: TensorFlow Hub on GitHub
image_path: /ecosystem/images/github-card-16x9.png
path: https://github.com/tensorflow/hub
buttons:
- label: View on GitHub
path: https://github.com/tensorflow/hub
11 changes: 11 additions & 0 deletions docs/_project.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: TensorFlow Hub
breadcrumb_name: Hub
home_url: /hub/
parent_project_metadata_path: /_project.yaml
description: >
TensorFlow Hub is a library for the publication, discovery, and consumption of
reusable parts of machine learning models.
use_site_branding: True
hide_from_products_list: True
content_license: cc3-apache2
buganizer_id: 321153
97 changes: 0 additions & 97 deletions docs/index.md

This file was deleted.

26 changes: 0 additions & 26 deletions docs/leftnav_files

This file was deleted.

42 changes: 42 additions & 0 deletions docs/overview.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# TensorFlow Hub

## Publishing on tfhub.dev

Are you interested in publishing your modules on tfhub.dev? Express your
interest via our [Publisher
Survey](https://services.google.com/fb/forms/tensorflowhubpublishersurvey/). We
appreciate your valuable feedback, and will be providing more information about
publishing modules in the coming months. For now, please read our documentation
about [Hosting a Module](hosting.md).

## Fairness

As in all of machine learning, [fairness](http://ml-fairness.com) is an
[important](https://research.googleblog.com/2016/10/equality-of-opportunity-in-machine.html)
consideration. Modules typically leverage large pretrained datasets. When
reusing such a dataset, it’s important to be mindful of what data it contains
(and whether there are any existing biases there), and how these might impact
your downstream experiments.


## Status

Although we hope to prevent breaking changes, this project is still under active
development and is not yet guaranteed to have a stable API or module format.


## Security

Since they contain arbitrary TensorFlow graphs, modules can be thought of as
programs. [Using TensorFlow Securely](https://github.com/tensorflow/tensorflow/blob/master/SECURITY.md)
describes the security implications of referencing a module from an untrusted
source.


## Source-Code & Bug Reports

The source code is available on [GitHub](https://github.com/tensorflow/hub).
Use [GitHub issues](https://github.com/tensorflow/hub/issues) for feature requests
and bugs. Please see the [TensorFlow Hub mailing
list](https://groups.google.com/a/tensorflow.org/forum/#!forum/hub) for general
questions and discussion.

0 comments on commit f9c4bcd

Please sign in to comment.