[Nano] How-To Guides: Convert to TorchNano & use @nano decorator (#5984)
* Add how to guide: How to convert your PyTorch code to use TorchNano for training acceleration * Small nano how-to index format update for openvino inference * Update based on comments * Updated based on comments * Add how-to guide: How to wrap a PyTorch training loop through @nano decorator * Add reference to TorchNano guide in @nano guide * Some small fixes and updates * Small typo fix: bulit -> built * Updates based on comments * Remove validation dataloader based on comments * Order change of two guides * Update based on comments
This commit is contained in:
		
							parent
							
								
									3e040d7b28
								
							
						
					
					
						commit
						37b0c6fa50
					
				
					 4 changed files with 20 additions and 7 deletions
				
			
		| 
						 | 
					@ -109,9 +109,13 @@ subtrees:
 | 
				
			||||||
                  - file: doc/Nano/Howto/Training/PyTorchLightning/pytorch_lightning_training_channels_last
 | 
					                  - file: doc/Nano/Howto/Training/PyTorchLightning/pytorch_lightning_training_channels_last
 | 
				
			||||||
                  - file: doc/Nano/Howto/Training/PyTorchLightning/pytorch_lightning_training_bf16
 | 
					                  - file: doc/Nano/Howto/Training/PyTorchLightning/pytorch_lightning_training_bf16
 | 
				
			||||||
                  - file: doc/Nano/Howto/Training/PyTorchLightning/pytorch_lightning_cv_data_pipeline
 | 
					                  - file: doc/Nano/Howto/Training/PyTorchLightning/pytorch_lightning_cv_data_pipeline
 | 
				
			||||||
 | 
					                  - file: doc/Nano/Howto/Training/PyTorch/convert_pytorch_training_torchnano
 | 
				
			||||||
 | 
					                  - file: doc/Nano/Howto/Training/PyTorch/use_nano_decorator_pytorch_training
 | 
				
			||||||
                  - file: doc/Nano/Howto/Training/TensorFlow/accelerate_tensorflow_training_multi_instance
 | 
					                  - file: doc/Nano/Howto/Training/TensorFlow/accelerate_tensorflow_training_multi_instance
 | 
				
			||||||
                  - file: doc/Nano/Howto/Training/TensorFlow/tensorflow_training_embedding_sparseadam
 | 
					                  - file: doc/Nano/Howto/Training/TensorFlow/tensorflow_training_embedding_sparseadam
 | 
				
			||||||
                  - file: doc/Nano/Howto/Training/General/choose_num_processes_training
 | 
					                  - file: doc/Nano/Howto/Training/General/choose_num_processes_training
 | 
				
			||||||
 | 
					                  - file: doc/Nano/Howto/Inference/OpenVINO/openvino_inference
 | 
				
			||||||
 | 
					                  - file: doc/Nano/Howto/Inference/OpenVINO/openvino_inference_async
 | 
				
			||||||
                  - file: doc/Nano/Howto/Inference/PyTorch/accelerate_pytorch_inference_onnx
 | 
					                  - file: doc/Nano/Howto/Inference/PyTorch/accelerate_pytorch_inference_onnx
 | 
				
			||||||
                  - file: doc/Nano/Howto/Inference/PyTorch/accelerate_pytorch_inference_openvino
 | 
					                  - file: doc/Nano/Howto/Inference/PyTorch/accelerate_pytorch_inference_openvino
 | 
				
			||||||
                  - file: doc/Nano/Howto/Inference/PyTorch/accelerate_pytorch_inference_jit_ipex
 | 
					                  - file: doc/Nano/Howto/Inference/PyTorch/accelerate_pytorch_inference_jit_ipex
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,3 @@
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					    "path": "../../../../../../../../python/nano/tutorial/notebook/training/pytorch/convert_pytorch_training_torchnano.ipynb"
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,3 @@
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					    "path": "../../../../../../../../python/nano/tutorial/notebook/training/pytorch/use_nano_decorator_pytorch_training.ipynb"
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -16,6 +16,16 @@ PyTorch Lightning
 | 
				
			||||||
* `How to conduct BFloat16 Mixed Precision training in your PyTorch Lightning application <Training/PyTorchLightning/pytorch_lightning_training_bf16.html>`_
 | 
					* `How to conduct BFloat16 Mixed Precision training in your PyTorch Lightning application <Training/PyTorchLightning/pytorch_lightning_training_bf16.html>`_
 | 
				
			||||||
* `How to accelerate a computer vision data processing pipeline <Training/PyTorchLightning/pytorch_lightning_cv_data_pipeline.html>`_
 | 
					* `How to accelerate a computer vision data processing pipeline <Training/PyTorchLightning/pytorch_lightning_cv_data_pipeline.html>`_
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					PyTorch
 | 
				
			||||||
 | 
					~~~~~~~~~~~~~~~~~~~~~~~~~
 | 
				
			||||||
 | 
					* |convert_pytorch_training_torchnano|_
 | 
				
			||||||
 | 
					* |use_nano_decorator_pytorch_training|_
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.. |use_nano_decorator_pytorch_training| replace:: How to accelerate your PyTorch training loop with ``@nano`` decorator
 | 
				
			||||||
 | 
					.. _use_nano_decorator_pytorch_training: Training/PyTorch/use_nano_decorator_pytorch_training.html
 | 
				
			||||||
 | 
					.. |convert_pytorch_training_torchnano| replace:: How to convert your PyTorch training loop to use ``TorchNano`` for acceleration
 | 
				
			||||||
 | 
					.. _convert_pytorch_training_torchnano: Training/PyTorch/convert_pytorch_training_torchnano.html
 | 
				
			||||||
 | 
					
 | 
				
			||||||
TensorFlow
 | 
					TensorFlow
 | 
				
			||||||
~~~~~~~~~~~~~~~~~~~~~~~~~
 | 
					~~~~~~~~~~~~~~~~~~~~~~~~~
 | 
				
			||||||
* `How to accelerate a TensorFlow Keras application on training workloads through multiple instances <Training/TensorFlow/accelerate_tensorflow_training_multi_instance.html>`_
 | 
					* `How to accelerate a TensorFlow Keras application on training workloads through multiple instances <Training/TensorFlow/accelerate_tensorflow_training_multi_instance.html>`_
 | 
				
			||||||
| 
						 | 
					@ -37,13 +47,6 @@ OpenVINO
 | 
				
			||||||
* `How to run inference on OpenVINO model <Inference/OpenVINO/openvino_inference.html>`_
 | 
					* `How to run inference on OpenVINO model <Inference/OpenVINO/openvino_inference.html>`_
 | 
				
			||||||
* `How to run asynchronous inference on OpenVINO model <Inference/OpenVINO/openvino_inference_async.html>`_
 | 
					* `How to run asynchronous inference on OpenVINO model <Inference/OpenVINO/openvino_inference_async.html>`_
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.. toctree::
 | 
					 | 
				
			||||||
    :maxdepth: 1
 | 
					 | 
				
			||||||
    :hidden:
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    Inference/OpenVINO/openvino_inference
 | 
					 | 
				
			||||||
    Inference/OpenVINO/openvino_inference_async
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
PyTorch
 | 
					PyTorch
 | 
				
			||||||
~~~~~~~~~~~~~~~~~~~~~~~~~
 | 
					~~~~~~~~~~~~~~~~~~~~~~~~~
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue