{"id":47569,"date":"2026-11-23T22:06:07","date_gmt":"2026-11-23T22:06:07","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=47569"},"modified":"2026-11-23T22:06:07","modified_gmt":"2026-11-23T22:06:07","slug":"pytorch-lab-5-pytorch-autogradintro","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/pytorch-lab-5-pytorch-autogradintro\/","title":{"rendered":"PyTorch Lab &#8211; 5 &#8211; Pytorch AutogradIntro"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">This lab shows how PyTorch autograd records operations on tensors and computes gradients. It covers <code>requires_grad<\/code>, <code>grad_fn<\/code>, <code>.grad<\/code>, <code>backward()<\/code>, <code>torch.no_grad()<\/code> and <code>detach()<\/code>. The sections below the notebook explain why each output looks the way it does, check the gradients by hand, fix the misleading parts of the notebook, and list the autograd errors you are most likely to run into.<\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/devops-school\/d555c2f3d7985dea605ffabaa41816e1.js\"><\/script>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">How autograd works in one paragraph<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Each time you run an operation on a tensor with <code>requires_grad=True<\/code>, PyTorch adds a node to a computation graph. The graph is built while your code runs, which is why it is called a dynamic graph. Calling <code>backward()<\/code> on a scalar result walks that graph in reverse, applies the chain rule, and stores the gradients in the <code>.grad<\/code> attribute of every <strong>leaf<\/strong> tensor that requires gradients. A leaf tensor is one you created directly rather than one produced by an operation. Training a neural network follows this pattern: the model parameters are leaf tensors, the loss is the scalar you call <code>backward()<\/code> on, and the optimizer reads <code>.grad<\/code> to update the parameters.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Attribute<\/th><th>Meaning<\/th><th>Typical value in the notebook<\/th><\/tr><\/thead><tbody><tr><td><code>requires_grad<\/code><\/td><td>Whether operations on this tensor are recorded<\/td><td><code>False<\/code> by default, <code>True<\/code> after <code>requires_grad_()<\/code><\/td><\/tr><tr><td><code>grad_fn<\/code><\/td><td>The backward node that created this tensor<\/td><td><code>None<\/code> for leaf tensors, <code>MulBackward0<\/code> or <code>MeanBackward0<\/code> for results<\/td><\/tr><tr><td><code>.grad<\/code><\/td><td>Accumulated gradient, filled in by <code>backward()<\/code><\/td><td><code>None<\/code> until <code>backward()<\/code> runs, and only on leaf tensors<\/td><\/tr><tr><td><code>is_leaf<\/code><\/td><td>Whether the tensor was created by the user rather than by an operation<\/td><td><code>True<\/code> for <code>tensor1<\/code>, <code>False<\/code> for <code>output_tensor<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Running the lab as a plain Python script<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The notebook targets Python 3 and any recent PyTorch release. Install the CPU build with <code>pip install torch<\/code>, or follow the selector on the PyTorch website if you need a CUDA build. The script below condenses the first half of the notebook. It uses <code>torch.tensor<\/code> with float values, which is the recommended constructor, and checks the gradient against a value calculated by hand.<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-1\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\">import torch\n\nx = torch.tensor(&#91;&#91;<span class=\"hljs-number\">1.<\/span>, <span class=\"hljs-number\">2.<\/span>, <span class=\"hljs-number\">3.<\/span>],\n                  &#91;<span class=\"hljs-number\">4.<\/span>, <span class=\"hljs-number\">5.<\/span>, <span class=\"hljs-number\">6.<\/span>]], requires_grad=<span class=\"hljs-keyword\">True<\/span>)   <span class=\"hljs-comment\"># leaf, tracked<\/span>\nw = torch.tensor(&#91;&#91;<span class=\"hljs-number\">7.<\/span>, <span class=\"hljs-number\">8.<\/span>, <span class=\"hljs-number\">9.<\/span>],\n                  &#91;<span class=\"hljs-number\">10.<\/span>, <span class=\"hljs-number\">11.<\/span>, <span class=\"hljs-number\">12.<\/span>]])                    <span class=\"hljs-comment\"># leaf, not tracked<\/span>\n\ny = (x * w).mean()\n<span class=\"hljs-keyword\">print<\/span>(y)                  <span class=\"hljs-comment\"># tensor(36.1667, grad_fn=&lt;MeanBackward0&gt;)<\/span>\n<span class=\"hljs-keyword\">print<\/span>(x.is_leaf, y.is_leaf)   <span class=\"hljs-comment\"># True False<\/span>\n\ny.backward()\n<span class=\"hljs-keyword\">print<\/span>(x.grad)\n<span class=\"hljs-comment\"># tensor(&#91;&#91;1.1667, 1.3333, 1.5000],<\/span>\n<span class=\"hljs-comment\">#         &#91;1.6667, 1.8333, 2.0000]])<\/span>\n\n<span class=\"hljs-comment\"># d(mean(x*w))\/dx = w \/ number_of_elements<\/span>\n<span class=\"hljs-keyword\">print<\/span>(torch.allclose(x.grad, w \/ x.numel()))   <span class=\"hljs-comment\"># True<\/span>\n<span class=\"hljs-keyword\">print<\/span>(w.grad)             <span class=\"hljs-comment\"># None, because w does not require grad<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-1\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\">The gradient is <code>w \/ 6<\/code> because <code>mean<\/code> divides the sum of six products by 6, and the derivative of <code>x_i * w_i<\/code> with respect to <code>x_i<\/code> is <code>w_i<\/code>. The same reasoning explains <code>0.25<\/code> in the second part of the notebook: <code>(tensor_one + tensor_two).mean()<\/code> averages four elements, so each element&#039;s derivative is <code>1\/4<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> The number at the end of a backward node name, as in <code>MeanBackward0<\/code> or <code>MeanBackward1<\/code>, depends on which overload of the operation ran and on the PyTorch version. Recent releases show <code>MeanBackward0<\/code> for a full <code>.mean()<\/code>, while the notebook shows <code>MeanBackward1<\/code>. Neither changes the result.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">grad_fn links to the whole graph, not only the last operation<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The notebook says that the gradient function only contains the last operation. That is misleading. <code>grad_fn<\/code> is the <strong>last node<\/strong> of the graph, but each node keeps references to the nodes before it through <code>next_functions<\/code>, so autograd still has the complete history. That is why <code>backward()<\/code> can reach <code>tensor1<\/code> through both the mean and the multiplication.<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-2\" data-shcb-language-name=\"CSS\" data-shcb-language-slug=\"css\"><span><code class=\"hljs language-css\"><span class=\"hljs-selector-tag\">print<\/span>(<span class=\"hljs-selector-tag\">y<\/span><span class=\"hljs-selector-class\">.grad_fn<\/span>)\n# &lt;<span class=\"hljs-selector-tag\">MeanBackward0<\/span> <span class=\"hljs-selector-tag\">object<\/span> <span class=\"hljs-selector-tag\">at<\/span> 0<span class=\"hljs-selector-tag\">x<\/span>...&gt;\n<span class=\"hljs-selector-tag\">print<\/span>(<span class=\"hljs-selector-tag\">y<\/span><span class=\"hljs-selector-class\">.grad_fn<\/span><span class=\"hljs-selector-class\">.next_functions<\/span>)\n# ((&lt;<span class=\"hljs-selector-tag\">MulBackward0<\/span> <span class=\"hljs-selector-tag\">object<\/span> <span class=\"hljs-selector-tag\">at<\/span> 0<span class=\"hljs-selector-tag\">x<\/span>...&gt;, 0),)\n<span class=\"hljs-selector-tag\">print<\/span>(<span class=\"hljs-selector-tag\">y<\/span><span class=\"hljs-selector-class\">.grad_fn<\/span><span class=\"hljs-selector-class\">.next_functions<\/span><span class=\"hljs-selector-attr\">&#91;0]<\/span><span class=\"hljs-selector-attr\">&#91;0]<\/span><span class=\"hljs-selector-class\">.next_functions<\/span>)\n# ((&lt;<span class=\"hljs-selector-tag\">AccumulateGrad<\/span> <span class=\"hljs-selector-tag\">object<\/span> <span class=\"hljs-selector-tag\">at<\/span> 0<span class=\"hljs-selector-tag\">x<\/span>...&gt;, 0), (<span class=\"hljs-selector-tag\">None<\/span>, 0))<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-2\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">CSS<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">css<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\"><code>AccumulateGrad<\/code> is the node that writes into <code>x.grad<\/code>. The <code>None<\/code> entry belongs to <code>w<\/code>. It does not require gradients, so the graph has no path back to it.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Gradients accumulate: the 0.5 in the detach example<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In the last cells of the notebook, <code>tensor_one.grad<\/code> shows <code>0.5<\/code> after <code>(tensor_one + detached_tensor).mean().backward()<\/code>. That result does not mean the detached tensor contributed a gradient. The gradient of that expression with respect to <code>tensor_one<\/code> is <code>0.25<\/code> per element. The extra <code>0.25<\/code> is left over from the earlier <code>final_tensor.backward()<\/code> call, because <code>backward()<\/code> <strong>adds<\/strong> to <code>.grad<\/code> rather than replacing it.<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-3\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\">a = torch.tensor(&#91;&#91;<span class=\"hljs-number\">1.<\/span>, <span class=\"hljs-number\">2.<\/span>], &#91;<span class=\"hljs-number\">3.<\/span>, <span class=\"hljs-number\">4.<\/span>]], requires_grad=<span class=\"hljs-keyword\">True<\/span>)\n\na.mean().backward()\n<span class=\"hljs-keyword\">print<\/span>(a.grad)        <span class=\"hljs-comment\"># all 0.25<\/span>\n\na.mean().backward()\n<span class=\"hljs-keyword\">print<\/span>(a.grad)        <span class=\"hljs-comment\"># all 0.50, because the two calls were added together<\/span>\n\na.grad = None        <span class=\"hljs-comment\"># or a.grad.zero_()<\/span>\na.mean().backward()\n<span class=\"hljs-keyword\">print<\/span>(a.grad)        <span class=\"hljs-comment\"># all 0.25 again<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-3\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\">In a training loop, gradients are reset once per batch with <code>optimizer.zero_grad()<\/code> before <code>loss.backward()<\/code>. If you forget this step, each update uses the sum of gradients from every batch so far, and training usually diverges or behaves strangely.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Leaf tensors, non-leaf tensors and retain_grad<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The notebook prints <code>None<\/code> for <code>output_tensor.grad<\/code> and <code>final_tensor.grad<\/code>. This is expected, because autograd fills <code>.grad<\/code> only for leaf tensors, which saves memory. Recent PyTorch versions also print a UserWarning when you read <code>.grad<\/code> on a non-leaf tensor. If you need an intermediate gradient for debugging, call <code>retain_grad()<\/code> before running <code>backward()<\/code>.<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-4\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\">x = torch.tensor(&#91;<span class=\"hljs-number\">1.<\/span>, <span class=\"hljs-number\">2.<\/span>, <span class=\"hljs-number\">3.<\/span>], requires_grad=<span class=\"hljs-keyword\">True<\/span>)\nh = x * <span class=\"hljs-number\">2<\/span>\nh.retain_grad()          <span class=\"hljs-comment\"># keep the gradient of this intermediate tensor<\/span>\nout = h.sum()\nout.backward()\n\n<span class=\"hljs-keyword\">print<\/span>(h.grad)   <span class=\"hljs-comment\"># tensor(&#91;1., 1., 1.])<\/span>\n<span class=\"hljs-keyword\">print<\/span>(x.grad)   <span class=\"hljs-comment\"># tensor(&#91;2., 2., 2.])<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-4\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\"><code>backward()<\/code> without arguments works only on a scalar. For a tensor with more than one element, either reduce it first with <code>sum()<\/code> or <code>mean()<\/code>, or pass a gradient of the same shape, as in <code>v.backward(torch.ones_like(v))<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Choosing how to turn off tracking<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Tool<\/th><th>What it does<\/th><th>Use it for<\/th><\/tr><\/thead><tbody><tr><td><code>torch.no_grad()<\/code><\/td><td>Results created inside the block do not record history. Leaf flags stay as they are.<\/td><td>Evaluation loops and manual weight updates<\/td><\/tr><tr><td><code>torch.inference_mode()<\/code><\/td><td>Like <code>no_grad<\/code> but with lower overhead. Tensors created inside it cannot be used later in autograd.<\/td><td>Pure inference and serving<\/td><\/tr><tr><td><code>tensor.detach()<\/code><\/td><td>Returns a tensor that shares the same data but is outside the graph<\/td><td>Logging, plotting, or stopping gradients through one branch<\/td><\/tr><tr><td><code>requires_grad_(False)<\/code><\/td><td>Stops tracking a leaf tensor permanently<\/td><td>Freezing layers during fine-tuning<\/td><\/tr><tr><td><code>torch.enable_grad()<\/code><\/td><td>Turns tracking back on inside a <code>no_grad<\/code> block<\/td><td>Rare cases such as computing a gradient during evaluation<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> <code>model.eval()<\/code> does <strong>not<\/strong> disable gradients. It only changes the behaviour of layers such as dropout and batch normalisation. For inference, use <code>model.eval()<\/code> together with <code>torch.no_grad()<\/code> or <code>torch.inference_mode()<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>detach()<\/code> shares storage with the original tensor, so an in-place change to the detached tensor also changes the original. Use <code>t.detach().clone()<\/code> when you need an independent copy. To convert a tracked tensor to NumPy, use <code>t.detach().cpu().numpy()<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Common autograd errors<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Error message (abridged)<\/th><th>Cause<\/th><th>Fix<\/th><\/tr><\/thead><tbody><tr><td><code>grad can be implicitly created only for scalar outputs<\/code><\/td><td><code>backward()<\/code> was called on a tensor with more than one element<\/td><td>Reduce it with <code>sum()<\/code> or <code>mean()<\/code>, or pass <code>gradient=torch.ones_like(t)<\/code><\/td><\/tr><tr><td><code>element 0 of tensors does not require grad and does not have a grad_fn<\/code><\/td><td>No input in the graph had <code>requires_grad=True<\/code>, or the result was computed under <code>no_grad<\/code><\/td><td>Set <code>requires_grad=True<\/code> on the leaf tensors and compute outside <code>no_grad<\/code><\/td><\/tr><tr><td><code>Trying to backward through the graph a second time<\/code><\/td><td>The graph&#039;s saved buffers are freed after the first <code>backward()<\/code><\/td><td>Rebuild the graph by recomputing the forward pass, or pass <code>retain_graph=True<\/code> if you really need a second pass<\/td><\/tr><tr><td><code>only Tensors of floating point and complex dtype can require gradients<\/code><\/td><td><code>torch.tensor([[1, 2]], requires_grad=True)<\/code> creates an integer tensor<\/td><td>Use float literals such as <code>1.<\/code> or pass <code>dtype=torch.float32<\/code><\/td><\/tr><tr><td><code>a leaf Variable that requires grad is being used in an in-place operation<\/code><\/td><td>An in-place operation such as <code>x += 1<\/code> was run on a tracked leaf<\/td><td>Wrap manual updates in <code>torch.no_grad()<\/code> or use an out-of-place operation<\/td><\/tr><tr><td><code>Can&#039;t call numpy() on Tensor that requires grad<\/code><\/td><td>Converting a tracked tensor directly<\/td><td>Use <code>t.detach().numpy()<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Corrections to the notebook<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The note that the gradient function &quot;only contains the last operation&quot; is misleading. <code>grad_fn<\/code> is the last node, but it links to every earlier node through <code>next_functions<\/code>, so the full graph is kept.<\/li>\n\n\n<li>The <code>0.5<\/code> gradient in the detach example comes from accumulation with the earlier <code>backward()<\/code> call. Reset <code>tensor_one.grad = None<\/code> before that cell and you will see <code>0.25<\/code>, which is the actual gradient of that expression.<\/li>\n\n\n<li>In the <code>torch.no_grad()<\/code> cell, both lines are labelled <code>requires_grad for tensor =<\/code>. The second line prints <code>tensor2.requires_grad<\/code>.<\/li>\n\n\n<li>The notebook mixes the legacy <code>torch.Tensor(...)<\/code> constructor with <code>torch.tensor(...)<\/code>. Prefer <code>torch.tensor(..., dtype=torch.float32)<\/code> or float literals, because <code>torch.tensor<\/code> infers and preserves the dtype.<\/li>\n\n\n<li>Backward node names such as <code>MeanBackward1<\/code> vary between PyTorch versions. Current releases show <code>MeanBackward0<\/code> for a full <code>.mean()<\/code>.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Frequently asked questions<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Why is .grad None after I call backward()?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><code>.grad<\/code> is filled in only for leaf tensors that have <code>requires_grad=True<\/code>. Intermediate results get <code>None<\/code> unless you call <code>retain_grad()<\/code> on them before <code>backward()<\/code>, and tensors that never required gradients always stay <code>None<\/code>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Why do my gradients keep growing between iterations?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">PyTorch adds new gradients to the existing <code>.grad<\/code> instead of overwriting it. Call <code>optimizer.zero_grad()<\/code>, or set <code>param.grad = None<\/code>, before each <code>backward()<\/code> call.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">What is the difference between torch.no_grad() and detach()?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><code>torch.no_grad()<\/code> stops recording for every operation inside the block. <code>detach()<\/code> removes a single tensor from the graph and leaves recording on for everything else. The detached tensor shares memory with the original.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Should I use torch.no_grad() or torch.inference_mode() for inference?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Both prevent graph construction. <code>inference_mode<\/code> has lower overhead, but tensors created inside it cannot be used in autograd later, so use it only for pure inference and use <code>no_grad<\/code> everywhere else.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Can integer tensors require gradients?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">No. Only floating-point and complex tensors can require gradients, so create inputs with float values or pass <code>dtype=torch.float32<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Related tutorials<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.devopsschool.com\/blog\/category\/artificial-intelligence\/machine-learning\/\">More Machine Learning tutorials<\/a><\/li>\n\n\n<li><a href=\"https:\/\/www.devopsschool.com\/blog\/lead-machine-learning-engineer-role-blueprint-responsibilities-skills-kpis-and-career-path\/\">Lead Machine Learning Engineer: Role Blueprint, Responsibilities, Skills, KPIs, and Career Path<\/a><\/li>\n\n\n<li><a href=\"https:\/\/www.devopsschool.com\/blog\/staff-mlops-engineer-role-blueprint-responsibilities-skills-kpis-and-career-path\/\">Staff MLOps Engineer: Role Blueprint, Responsibilities, Skills, KPIs, and Career Path<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>This lab shows how PyTorch autograd records operations on tensors and computes gradients. It covers requires_grad, grad_fn, .grad, backward(), torch.no_grad() and detach(). The sections below the notebook&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[6512],"tags":[7364],"class_list":["post-47569","post","type-post","status-publish","format-standard","hentry","category-machine-learning","tag-pytorch"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/47569","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=47569"}],"version-history":[{"count":2,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/47569\/revisions"}],"predecessor-version":[{"id":80169,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/47569\/revisions\/80169"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=47569"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=47569"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=47569"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}