{"id":47578,"date":"2026-11-23T22:06:11","date_gmt":"2026-11-23T22:06:11","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=47578"},"modified":"2026-11-23T22:06:11","modified_gmt":"2026-11-23T22:06:11","slug":"pytorch-lab-9-pytorch-cuda-semantics","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/pytorch-lab-9-pytorch-cuda-semantics\/","title":{"rendered":"PyTorch Lab &#8211; 9 &#8211; Pytorch CUDA Semantics"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">This lab covers how PyTorch builds a computation graph on the fly as tensor operations run, and how that graph behaves when tensors and models are on a CUDA GPU. The notebook above shows the graph side with plain tensors and the hiddenlayer visualiser. The sections below add a working autograd example, current visualisation tools, the CUDA rules for device placement, asynchronous execution and memory, and fixes for the problems readers run into most often.<\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/devops-school\/55f7a4c36a4ee57428f613ca6dce11f4.js\"><\/script>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">What the notebook above covers<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The post is titled CUDA semantics, but the embedded notebook (<code>demo9-PytorchComputationGraph.ipynb<\/code>) is about computation graphs. It builds <code>y = W*x + b<\/code> from tensors, combines several weighted inputs into <code>final_value<\/code>, and then draws the graphs of three small <code>nn.Sequential<\/code> models with the <code>hiddenlayer<\/code> library. Nothing in it runs on a GPU.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The two topics are closely linked. PyTorch records the graph as operations run, which is why it is called define-by-run. The same recording works on CPU or CUDA, as long as every tensor in an operation is on the same device. This page completes both parts: first the graph and autograd, then the CUDA rules.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Dynamic computation graphs and autograd<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In the example above, no tensor has <code>requires_grad=True<\/code>, so PyTorch computes the values but records no graph. Autograd only tracks operations that involve at least one tensor requiring gradients. The version below records the graph, shows the recorded nodes and runs the backward pass.<\/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\nW = torch.randn(<span class=\"hljs-number\">6<\/span>, requires_grad=<span class=\"hljs-keyword\">True<\/span>)   <span class=\"hljs-comment\"># trainable weights<\/span>\nx = torch.full((<span class=\"hljs-number\">6<\/span>,), <span class=\"hljs-number\">10.0<\/span>)               <span class=\"hljs-comment\"># input, no gradient needed<\/span>\nb = torch.tensor(<span class=\"hljs-number\">3.0<\/span>, requires_grad=<span class=\"hljs-keyword\">True<\/span>)  <span class=\"hljs-comment\"># float bias, trainable<\/span>\n\ny = W * x + b\n<span class=\"hljs-keyword\">print<\/span>(y.grad_fn)                  <span class=\"hljs-comment\"># &lt;AddBackward0 object at ...&gt;<\/span>\n<span class=\"hljs-keyword\">print<\/span>(y.grad_fn.next_functions)   <span class=\"hljs-comment\"># ((&lt;MulBackward0 ...&gt;, 0), (&lt;AccumulateGrad ...&gt;, 0))<\/span>\n\nloss = y.sum()\nloss.backward()\n\n<span class=\"hljs-keyword\">print<\/span>(W.grad)  <span class=\"hljs-comment\"># tensor(&#91;10., 10., 10., 10., 10., 10.])  -&gt; d(loss)\/dW = x<\/span>\n<span class=\"hljs-keyword\">print<\/span>(b.grad)  <span class=\"hljs-comment\"># tensor(6.)                              -&gt; b is added to 6 elements<\/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<ul class=\"wp-block-list\">\n<li><code>grad_fn<\/code> is the node that created a tensor. Following <code>next_functions<\/code> walks the graph backwards to the leaf tensors (<code>AccumulateGrad<\/code>).<\/li>\n\n\n<li>The graph is rebuilt on every forward pass, so Python <code>if<\/code> statements and loops can change the graph from one run to the next. This is what the notebook&#039;s &quot;Working Dynamically&quot; heading refers to.<\/li>\n\n\n<li>After <code>backward()<\/code>, PyTorch frees the graph by default. Calling <code>backward()<\/code> on it again raises an error unless the first call used <code>retain_graph=True<\/code>.<\/li>\n\n\n<li>Gradients add up across calls. Training loops call <code>optimizer.zero_grad()<\/code> (or set <code>.grad<\/code> to <code>None<\/code>) before each backward pass.<\/li>\n\n\n<li>Wrap inference in <code>with torch.no_grad():<\/code> (or <code>torch.inference_mode()<\/code>) so no graph is recorded and memory is saved.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Visualising model graphs with current tools<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>hiddenlayer<\/code> project used above is no longer maintained. It relies on private PyTorch ONNX internals, so on recent PyTorch releases <code>hl.build_graph<\/code> usually fails with an <code>AttributeError<\/code> that names a <code>torch.onnx<\/code> function such as <code>_optimize_trace<\/code>. Two maintained alternatives cover the same need: <code>torchviz<\/code> draws the autograd graph, and <code>torchinfo<\/code> prints a table of layers, output shapes and parameter counts.<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-2\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\">pip install torch torchviz torchinfo\n<span class=\"hljs-comment\"># torchviz needs the Graphviz binaries on the system PATH<\/span>\nsudo apt-get install -y graphviz      <span class=\"hljs-comment\"># Debian\/Ubuntu<\/span>\n<span class=\"hljs-comment\"># brew install graphviz               # macOS<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-2\"><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<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\">import torch\nfrom torch import nn\nfrom torchviz import make_dot\nfrom torchinfo import summary\n\ninp, hid, out = <span class=\"hljs-number\">1<\/span>, <span class=\"hljs-number\">100<\/span>, <span class=\"hljs-number\">1<\/span>\nmodel2 = nn.Sequential(\n    nn.Linear(inp, hid),\n    nn.ReLU(),\n    nn.Linear(hid, hid),\n    nn.Sigmoid(),\n    nn.Linear(hid, out),\n)\n\nX = torch.zeros(<span class=\"hljs-number\">10<\/span>, inp)\npred = model2(X)\n\n<span class=\"hljs-comment\"># Autograd graph -&gt; model2_graph.png<\/span>\nmake_dot(pred, params=dict(model2.named_parameters())).render(<span class=\"hljs-string\">\"model2_graph\"<\/span>, format=<span class=\"hljs-string\">\"png\"<\/span>)\n\n<span class=\"hljs-comment\"># Layer table<\/span>\nsummary(model2, input_size=(<span class=\"hljs-number\">10<\/span>, inp))<\/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\"><code>summary<\/code> should report 10,401 trainable parameters: 200 for <code>Linear(1, 100)<\/code>, 10,100 for <code>Linear(100, 100)<\/code> and 101 for <code>Linear(100, 1)<\/code>. In a notebook, <code>make_dot(...)<\/code> on its own displays the graph inline. For larger models, TensorBoard&#039;s <code>SummaryWriter.add_graph(model, X)<\/code> gives an interactive view.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">CUDA semantics: devices and tensor placement<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Every tensor and every parameter lives on exactly one device. Operations run on the device where their inputs are, and the result is created on that same device. PyTorch does not move data between CPU and GPU automatically. If one operation mixes devices, it fails.<\/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\">import torch\nfrom torch import nn\n\ndevice = torch.device(<span class=\"hljs-string\">\"cuda\"<\/span> <span class=\"hljs-keyword\">if<\/span> torch.cuda.is_available() <span class=\"hljs-keyword\">else<\/span> <span class=\"hljs-string\">\"cpu\"<\/span>)\n<span class=\"hljs-keyword\">print<\/span>(<span class=\"hljs-string\">\"Using:\"<\/span>, device)\n<span class=\"hljs-keyword\">if<\/span> device.type == <span class=\"hljs-string\">\"cuda\"<\/span>:\n    <span class=\"hljs-keyword\">print<\/span>(torch.cuda.device_count(), <span class=\"hljs-string\">\"GPU(s):\"<\/span>, torch.cuda.get_device_name(<span class=\"hljs-number\">0<\/span>))\n\nmodel = nn.Sequential(nn.Linear(<span class=\"hljs-number\">1<\/span>, <span class=\"hljs-number\">100<\/span>), nn.ReLU(), nn.Linear(<span class=\"hljs-number\">100<\/span>, <span class=\"hljs-number\">1<\/span>)).to(device)  <span class=\"hljs-comment\"># moves parameters in place<\/span>\n\nX_train = torch.tensor(&#91;&#91;<span class=\"hljs-number\">1.7<\/span>], &#91;<span class=\"hljs-number\">2.5<\/span>], &#91;<span class=\"hljs-number\">5.5<\/span>], &#91;<span class=\"hljs-number\">7.9<\/span>], &#91;<span class=\"hljs-number\">8.8<\/span>]])\nX = X_train.to(device)       <span class=\"hljs-comment\"># tensors return a NEW tensor; reassign it<\/span>\n\nwith torch.no_grad():\n    pred = model(X)\n<span class=\"hljs-keyword\">print<\/span>(pred.device)            <span class=\"hljs-comment\"># cuda:0 on a GPU machine<\/span>\n\nresult = pred.cpu().numpy()   <span class=\"hljs-comment\"># NumPy only works with CPU tensors<\/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<ul class=\"wp-block-list\">\n<li><code>module.to(device)<\/code> changes the module in place. <code>tensor.to(device)<\/code> returns a copy, so <code>X.to(device)<\/code> without reassignment does nothing useful.<\/li>\n\n\n<li><code>&quot;cuda&quot;<\/code> means the current device, which is <code>cuda:0<\/code> unless changed. Inside <code>with torch.cuda.device(1):<\/code>, tensors created with <code>device=&quot;cuda&quot;<\/code> go to GPU 1. An explicit <code>torch.device(&quot;cuda:1&quot;)<\/code> always means GPU 1.<\/li>\n\n\n<li>Copying a tensor between GPUs is allowed with <code>.to(&quot;cuda:1&quot;)<\/code>, but a single operation cannot use inputs from two different GPUs.<\/li>\n\n\n<li><code>CUDA_VISIBLE_DEVICES=1 python train.py<\/code> hides every other GPU from the process. The visible GPU is then numbered <code>cuda:0<\/code> inside PyTorch.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Asynchronous execution, timing and memory<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">CUDA operations are queued and run asynchronously. Python returns as soon as the kernel has been queued, not when it has finished. This keeps the GPU busy, but if you time GPU code without synchronizing, you mostly measure how long it took to queue the work. Operations that need the result on the CPU, such as <code>.item()<\/code>, <code>.cpu()<\/code> or <code>print(tensor)<\/code>, wait for the GPU automatically.<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-5\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\">import time, torch\n\nassert torch.cuda.is_available()\na = torch.randn(<span class=\"hljs-number\">4096<\/span>, <span class=\"hljs-number\">4096<\/span>, device=<span class=\"hljs-string\">\"cuda\"<\/span>)\n\n_ = a @ a                     <span class=\"hljs-comment\"># warm-up (kernel selection, context init)<\/span>\ntorch.cuda.synchronize()\nstart = time.perf_counter()\nc = a @ a\ntorch.cuda.synchronize()      <span class=\"hljs-comment\"># wait for the GPU before stopping the clock<\/span>\n<span class=\"hljs-keyword\">print<\/span>(f<span class=\"hljs-string\">\"matmul: {(time.perf_counter() - start) * 1000:.2f} ms\"<\/span>)\n\nMB = <span class=\"hljs-number\">1024<\/span> ** <span class=\"hljs-number\">2<\/span>\n<span class=\"hljs-keyword\">print<\/span>(<span class=\"hljs-string\">\"allocated:\"<\/span>, torch.cuda.memory_allocated() \/ MB, <span class=\"hljs-string\">\"MB\"<\/span>)  <span class=\"hljs-comment\"># held by live tensors<\/span>\n<span class=\"hljs-keyword\">print<\/span>(<span class=\"hljs-string\">\"reserved: \"<\/span>, torch.cuda.memory_reserved() \/ MB, <span class=\"hljs-string\">\"MB\"<\/span>)   <span class=\"hljs-comment\"># held by the caching allocator<\/span>\n\ndel c\ntorch.cuda.empty_cache()      <span class=\"hljs-comment\"># return unused cached blocks to the driver<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-5\"><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<ul class=\"wp-block-list\">\n<li>PyTorch uses a caching allocator, so <code>nvidia-smi<\/code> shows reserved memory, not what live tensors are using. <code>empty_cache()<\/code> does not free memory that tensors still reference.<\/li>\n\n\n<li>For faster host-to-GPU copies, load batches into pinned memory (<code>DataLoader(..., pin_memory=True)<\/code>) and copy with <code>.to(device, non_blocking=True)<\/code>.<\/li>\n\n\n<li>On Ampere and newer GPUs, <code>torch.set_float32_matmul_precision(&quot;high&quot;)<\/code> lets float32 matrix multiplications use TF32. This is usually faster, at the cost of slightly lower precision.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Common errors and fixes<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Error or symptom<\/th><th>Cause<\/th><th>Fix<\/th><\/tr><\/thead><tbody><tr><td><code>Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu<\/code><\/td><td>The model is on the GPU but the inputs or targets are still on the CPU, or the other way round<\/td><td>Move the model and every batch tensor to the same <code>device<\/code><\/td><\/tr><tr><td><code>torch.cuda.is_available()<\/code> returns <code>False<\/code><\/td><td>A CPU-only PyTorch build is installed (<code>torch.version.cuda<\/code> is <code>None<\/code>), or the NVIDIA driver is missing<\/td><td>Check <code>nvidia-smi<\/code>, then install the CUDA-enabled wheel using the selector on pytorch.org<\/td><\/tr><tr><td><code>CUDA out of memory<\/code><\/td><td>The batch is too large, or the graph is kept alive by storing <code>loss<\/code> instead of <code>loss.item()<\/code><\/td><td>Reduce the batch size, use <code>torch.no_grad()<\/code> for evaluation, and accumulate <code>loss.item()<\/code><\/td><\/tr><tr><td><code>can&#039;t convert cuda:0 device type tensor to numpy<\/code><\/td><td>NumPy needs memory on the host<\/td><td>Call <code>.detach().cpu().numpy()<\/code><\/td><\/tr><tr><td><code>Trying to backward through the graph a second time<\/code><\/td><td>The graph was freed after the first <code>backward()<\/code><\/td><td>Recompute the forward pass, or pass <code>retain_graph=True<\/code> only when it is really needed<\/td><\/tr><tr><td><code>graphviz.backend.ExecutableNotFound<\/code><\/td><td>The Graphviz system package is not installed<\/td><td>Install <code>graphviz<\/code> with the OS package manager<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Corrections to the example above<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>No graph is recorded.<\/strong> None of the tensors set <code>requires_grad=True<\/code>, so <code>y = W*x + b<\/code> and <code>final_value<\/code> are plain arithmetic with no autograd graph. The corrected version in the autograd section sets it on <code>W<\/code> and <code>b<\/code>.<\/li>\n\n\n<li><strong>Mixed dtypes.<\/strong> <code>b = torch.tensor(3)<\/code> is an int64 tensor that is added to a float32 tensor. Type promotion makes this work, but use <code>torch.tensor(3.0)<\/code> for parameters so they can have gradients. Only floating-point tensors can require gradients.<\/li>\n\n\n<li><strong>Scalar versus size.<\/strong> <code>torch.tensor(6)<\/code> is a scalar with the value 6. <code>torch.randn(6)<\/code> is a tensor with 6 elements. In the example, <code>W1<\/code>, <code>W2<\/code> and <code>W3<\/code> are scalars, which is why <code>final_value<\/code> is <code>6*2 + 6*3 + 6*4 + 10 = 64<\/code>.<\/li>\n\n\n<li><strong>Missing non-linearity.<\/strong> <code>model1<\/code> is two <code>Linear<\/code> layers with nothing between them, and <code>model2<\/code> starts the same way. Two linear layers in a row reduce to one linear function. Put an activation such as <code>nn.ReLU()<\/code> between them, as the examples above do.<\/li>\n\n\n<li><strong>Unmaintained visualiser.<\/strong> <code>hiddenlayer<\/code> does not work with current PyTorch. Use <code>torchviz<\/code>, <code>torchinfo<\/code> or TensorBoard instead.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> The SVG outputs saved in the notebook come from an old run. On a current PyTorch install, expect an error from <code>hl.build_graph<\/code>, not those diagrams.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Frequently asked questions<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">What is a dynamic computation graph in PyTorch?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">PyTorch records operations into a graph while they run, not ahead of time. A new graph is built on each forward pass, so ordinary Python control flow can change the model&#039;s structure between iterations. The graph is used by <code>backward()<\/code> to compute gradients and is then freed.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">How do I move a PyTorch model and data to the GPU?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Create <code>device = torch.device(&quot;cuda&quot; if torch.cuda.is_available() else &quot;cpu&quot;)<\/code>, call <code>model.to(device)<\/code> once, and reassign each batch with <code>X = X.to(device)<\/code>. The model and its inputs must be on the same device.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Why is torch.cuda.is_available() False when I have an NVIDIA GPU?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Usually a CPU-only PyTorch build is installed, or the NVIDIA driver is missing or too old. Check <code>torch.version.cuda<\/code> and run <code>nvidia-smi<\/code>, then install the CUDA-enabled PyTorch build.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Why does my GPU code look extremely fast when I time it?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">CUDA kernels run asynchronously, so the Python call returns before the GPU has finished the work. Call <code>torch.cuda.synchronize()<\/code> before starting and before stopping the timer, or use <code>torch.cuda.Event<\/code> timers.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Does hiddenlayer still work with PyTorch?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Generally not. The project is unmaintained and depends on private <code>torch.onnx<\/code> functions that newer PyTorch releases have changed. Use <code>torchviz<\/code> for autograd graphs and <code>torchinfo<\/code> for layer summaries.<\/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\/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\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<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>This lab covers how PyTorch builds a computation graph on the fly as tensor operations run, and how that graph behaves when tensors and models are on&#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-47578","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\/47578","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=47578"}],"version-history":[{"count":2,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/47578\/revisions"}],"predecessor-version":[{"id":80173,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/47578\/revisions\/80173"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=47578"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=47578"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=47578"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}