Skip to content

fix missed code-blocks because of syntax error (#1496) #1497

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 3, 2021
Merged

fix missed code-blocks because of syntax error (#1496) #1497

merged 2 commits into from
May 3, 2021

Conversation

9bow
Copy link
Contributor

@9bow 9bow commented May 1, 2021

Related Issue

Some code-blocks are missing because of reST syntax error (#1496)

What would change

I fixed 8 code-blocks around 6 tutorials.

What I fixed is as below list:

Tutorial Source
Extending dispatcher for a new backend in C++ code-block after To create a Tensor on PrivateUse1 backend, you need to set dispatch key in TensorImpl constructor.
Making Native Android Application that uses PyTorch prebuilt libraries code-block after You should see logs with tag ‘PyTorchNativeApp’ that prints x, y, and the result of the model forward, which we print with log function in NativeApp/app/src/main/cpp/pytorch_nativeapp.cpp.
(prototype) FX Graph Mode Post Training Static Quantization code-block after The FX Graph Mode API looks like the following:
Hyperparameter tuning with Ray Tune code-block after If you run the code, an example output could look like this:
Dynamic Parallelism in TorchScript code-block after Let’s use the profiler along with the Chrome trace export functionality to visualize the performance of our parallelized model:
Extending TorchScript with Custom C++ Operators code-block after At this point, we should be able to build the application:, code-block after And run it without passing a model just yet:, AND code-block after If we then pass this serialized model to our C++ application, we can run it straight away:

@facebook-github-bot
Copy link
Contributor

Hi @9bow!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks!

@netlify
Copy link

netlify bot commented May 1, 2021

Deploy preview for pytorch-tutorials-preview ready!

Built with commit d529d9f

https://deploy-preview-1497--pytorch-tutorials-preview.netlify.app

@9bow
Copy link
Contributor Author

9bow commented May 1, 2021

Below are sample screenshots to check changes on 'Extending TorchScript with Custom C++ Operators' tutorial:

AS-IS (LINK)
image

TO-BE (LINK)
image
image

@facebook-github-bot
Copy link
Contributor

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@holly1238 holly1238 merged commit e24dced into pytorch:master May 3, 2021
rodrigo-techera pushed a commit to Experience-Monks/tutorials that referenced this pull request Nov 29, 2021
Co-authored-by: Holly Sweeney <77758406+holly1238@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants