Skip to content
This repository has been archived by the owner on Apr 28, 2023. It is now read-only.

Commit

Permalink
Merge pull request #87 from facebookresearch/mobile-css-theme
Browse files Browse the repository at this point in the history
nits and docs fixes for mobile docs
  • Loading branch information
prigoyal authored Feb 28, 2018
2 parents 045132d + ae10ffb commit f0c47fe
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 5 deletions.
21 changes: 21 additions & 0 deletions docs/source/_static/css/tc_theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,24 @@ footer .rst-footer-buttons {
footer p {
font-size: 100%;
}

/* Fixes for mobile - adopted from pytorch theme*/
.wy-nav-top {
background-color: #fff;
background-image: url('../img/tc-logo-full-color-with-text-2.png');
background-repeat: no-repeat;
background-position: center;
padding: 0;
margin: 0.4045em 0.809em;
color: #333;
}

.wy-nav-top > a {
display: none;
}

@media screen and (max-width: 768px) {
.wy-side-nav-search>a img.logo {
height: 60px;
}
}
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@
# built documents.
#
# The short X.Y version.
version = 'v0.1.0'
version = 'v0.1.1'
# The full version, including alpha/beta/rc tags.
release = 'v0.1.0'
release = 'v0.1.1'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ Cast
.. code::
def cast(float(M,N) A) -> (int32(M,N) O1) {{
O1(m, n) = int32(A(m, n) + {four})
O1(m, n) = int32(A(m, n) + {constant})
}}
Copy
Expand Down
4 changes: 2 additions & 2 deletions docs/source/tutorials/tutorial_tensordot_with_tc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ For this tutorial, you will need to install Tensor Comprehensions binary. You ca
get binary builds of Tensor Comprehensions with: ``conda install -y -c pytorch -c prigoyal tensor_comprehensions``

About TensorDot
^^^^^^^^^^^^^^^
---------------

Assume that we have two tensors, one with dimension :code:`(N, C1, C2, H, W)` and
one with dimension :code:`(N, C2, C3, H, W)`, and we want to do a gemm-type
Expand Down Expand Up @@ -140,7 +140,7 @@ get a decent kernel performance as shown in the screenshot below (tuned on one M
:align: center

Early stopping
^^^^^^^^^^^^^^
--------------

If your kernel performance is good enough while the autotuning continues, you
can stop autotuning by pressing :code:`Ctrl+C` and the autotuning cache will be saved
Expand Down

0 comments on commit f0c47fe

Please sign in to comment.