|
3 | 3 | {% block footer %} |
4 | 4 | {{ super() }} |
5 | 5 | <script> |
| 6 | + |
| 7 | + |
| 8 | +//add microsoft link |
| 9 | + |
| 10 | +if(window.location.href.indexOf("/beginner/basics/")!= -1) |
| 11 | +{ |
| 12 | + var url="https://docs.microsoft.com/learn/paths/pytorch-fundamentals/?wt.mc_id=aiml-7486-cxa"; |
| 13 | + switch(window.location.pathname.split("/").pop().replace('.html','')) |
| 14 | + { |
| 15 | + case"quickstart_tutorial": |
| 16 | + url="https://docs.microsoft.com/learn/modules/intro-machine-learning-pytorch/9-quickstart?WT.mc_id=aiml-7486-cxa"; |
| 17 | + break; |
| 18 | + case"tensorqs_tutorial": |
| 19 | + url="https://docs.microsoft.com/learn/modules/intro-machine-learning-pytorch/2-tensors?WT.mc_id=aiml-7486-cxa"; |
| 20 | + break; |
| 21 | + case"data_tutorial": |
| 22 | + url="https://docs.microsoft.com/learn/modules/intro-machine-learning-pytorch/3-data?WT.mc_id=aiml-7486-cxa"; |
| 23 | + break; |
| 24 | + case"transforms_tutorial": |
| 25 | + url="https://docs.microsoft.com/learn/modules/intro-machine-learning-pytorch/4-transforms?WT.mc_id=aiml-7486-cxa"; |
| 26 | + break; |
| 27 | + case"buildmodel_tutorial": |
| 28 | + url="https://docs.microsoft.com/learn/modules/intro-machine-learning-pytorch/5-model?WT.mc_id=aiml-7486-cxa"; |
| 29 | + break; |
| 30 | + case"autogradqs_tutorial": |
| 31 | + url="https://docs.microsoft.com/learn/modules/intro-machine-learning-pytorch/6-autograd?WT.mc_id=aiml-7486-cxa"; |
| 32 | + break; |
| 33 | + case"optimization_tutorial": |
| 34 | + url="https://docs.microsoft.com/learn/modules/intro-machine-learning-pytorch/7-optimization?WT.mc_id=aiml-7486-cxa"; |
| 35 | + break; |
| 36 | + case"saveloadrun_tutorial": |
| 37 | + url="https://docs.microsoft.com/learn/modules/intro-machine-learning-pytorch/8-inference?WT.mc_id=aiml-7486-cxa"; |
| 38 | + } |
| 39 | + |
| 40 | + $(".pytorch-call-to-action-links").children().first().before("<a href="+url+' data-behavior="call-to-action-event" data-response="Run in Microsoft Learn" target="_blank"><div id="microsoft-learn-link" style="padding-bottom: 0.625rem;border-bottom: 1px solid #f3f4f7;padding-right: 2.5rem;display: -webkit-box; display: -ms-flexbox; isplay: flex; -webkit-box-align: center;-ms-flex-align: center;align-items: center;"><img class="call-to-action-img" src="../../_static/images/microsoft-logo.svg"/><div class="call-to-action-desktop-view">Run in Microsoft Learn</div><div class="call-to-action-mobile-view">Learn</div></div></a>') |
| 41 | + } |
| 42 | + |
6 | 43 | !function(f,b,e,v,n,t,s) |
7 | 44 | {if(f.fbq)return;n=f.fbq=function(){n.callMethod? |
8 | 45 | n.callMethod.apply(n,arguments):n.queue.push(arguments)}; |
|
46 | 83 | $(".rating-container").hide(); |
47 | 84 | $(".hr-bottom").hide(); |
48 | 85 | } |
| 86 | + |
| 87 | + |
49 | 88 | </script> |
50 | 89 |
|
51 | 90 | <noscript> |
|
0 commit comments