{"id":47565,"date":"2026-11-23T22:06:06","date_gmt":"2026-11-23T22:06:06","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=47565"},"modified":"2026-11-23T22:06:06","modified_gmt":"2026-11-23T22:06:06","slug":"pytorch-lab-3-pytorch-conversions-between-pytorch-and-numpy","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/pytorch-lab-3-pytorch-conversions-between-pytorch-and-numpy\/","title":{"rendered":"PyTorch Lab &#8211; 3 &#8211; Pytorch Conversions Between PyTorch And NumPy"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">This lab shows how to convert data between PyTorch tensors and NumPy arrays using <code>tensor.numpy()<\/code>, <code>torch.from_numpy()<\/code>, <code>torch.as_tensor()<\/code> and <code>torch.tensor()<\/code>. The main point is memory: the first three can share one buffer, so a change on one side shows up on the other, while <code>torch.tensor()<\/code> always makes a copy. The sections below the notebook explain those rules, then cover GPU tensors, autograd tensors, dtype problems and the errors you are most likely to see.<\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/devops-school\/5daa0443bcacefb08ffcffc06c034c48.js\"><\/script>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Which conversions share memory<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The notebook above shows four ways to convert data. They look alike but behave differently. Some return a <strong>view<\/strong> of the same memory, so a change on one side shows up on the other. Others make an independent <strong>copy<\/strong>. Choosing the wrong one causes bugs that are hard to trace, such as a training batch changing after you have already logged it.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Call<\/th><th>Direction<\/th><th>Shares memory?<\/th><th>Notes<\/th><\/tr><\/thead><tbody><tr><td><code>t.numpy()<\/code><\/td><td>Tensor to NumPy<\/td><td>Yes (CPU only)<\/td><td>Fails on CUDA tensors and on tensors with <code>requires_grad=True<\/code><\/td><\/tr><tr><td><code>torch.from_numpy(a)<\/code><\/td><td>NumPy to Tensor<\/td><td>Always<\/td><td>Keeps the NumPy dtype. Fails on arrays with negative strides<\/td><\/tr><tr><td><code>torch.as_tensor(a)<\/code><\/td><td>NumPy or list to Tensor<\/td><td>Only if no dtype or device change is needed<\/td><td>Copies when you pass a different <code>dtype<\/code> or <code>device<\/code><\/td><\/tr><tr><td><code>torch.tensor(a)<\/code><\/td><td>Anything to Tensor<\/td><td>Never<\/td><td>Always copies and returns a new leaf tensor<\/td><\/tr><tr><td><code>np.asarray(t)<\/code><\/td><td>Tensor to NumPy<\/td><td>Yes (CPU, no grad)<\/td><td>Behaves like <code>t.numpy()<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> Memory stays shared only through <strong>in-place<\/strong> operations such as <code>a[0] = 1<\/code>, <code>t.add_(1)<\/code> or <code>a += 1<\/code>. A line like <code>t = t + 1<\/code> creates a new tensor, and after that the two objects are no longer linked.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A Python 3 version supported by your PyTorch release. The notebook metadata shows Python 3.7, which current PyTorch releases no longer support.<\/li>\n\n\n<li>PyTorch and NumPy installed in the same environment, for example with <code>pip install torch numpy<\/code>.<\/li>\n\n\n<li>Jupyter is optional. Every example below also runs as a plain <code>.py<\/code> script.<\/li>\n<\/ul>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-1\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript\">python -m venv .venv\nsource .venv\/bin\/activate\npip install torch numpy\npython -c <span class=\"hljs-string\">\"import torch, numpy; print(torch.__version__, numpy.__version__)\"<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-1\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<h2 class=\"wp-block-heading\">Runnable script that proves the memory rules<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The notebook uses <code>torch.rand<\/code>, so its output changes on every run. The script below uses fixed values so you can compare your output with the comments. <code>np.shares_memory()<\/code> lets you check sharing directly instead of inferring it from changed values.<\/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\">import numpy <span class=\"hljs-keyword\">as<\/span> np\nimport torch\n\n<span class=\"hljs-comment\"># 1. Tensor -&gt; NumPy: shares memory on CPU<\/span>\nt = torch.zeros(<span class=\"hljs-number\">2<\/span>, <span class=\"hljs-number\">3<\/span>)\na = t.numpy()\na&#91;<span class=\"hljs-number\">0<\/span>, <span class=\"hljs-number\">0<\/span>] = <span class=\"hljs-number\">100.0<\/span>\n<span class=\"hljs-keyword\">print<\/span>(t&#91;<span class=\"hljs-number\">0<\/span>, <span class=\"hljs-number\">0<\/span>].item())        <span class=\"hljs-comment\"># 100.0<\/span>\nt.add_(<span class=\"hljs-number\">1<\/span>)                    <span class=\"hljs-comment\"># in-place change on the tensor side<\/span>\n<span class=\"hljs-keyword\">print<\/span>(a&#91;<span class=\"hljs-number\">0<\/span>])                  <span class=\"hljs-comment\"># &#91;101.   1.   1.]<\/span>\n\n<span class=\"hljs-comment\"># 2. NumPy -&gt; Tensor with from_numpy: shares memory, keeps dtype<\/span>\narr = np.<span class=\"hljs-keyword\">array<\/span>(&#91;<span class=\"hljs-number\">1.0<\/span>, <span class=\"hljs-number\">2.0<\/span>, <span class=\"hljs-number\">3.0<\/span>])\nt2 = torch.from_numpy(arr)\narr&#91;<span class=\"hljs-number\">0<\/span>] = <span class=\"hljs-number\">-1.0<\/span>\n<span class=\"hljs-keyword\">print<\/span>(t2)                    <span class=\"hljs-comment\"># tensor(&#91;-1.,  2.,  3.], dtype=torch.float64)<\/span>\n\n<span class=\"hljs-comment\"># 3. as_tensor: shares only when no conversion is required<\/span>\nx = np.<span class=\"hljs-keyword\">array<\/span>(&#91;<span class=\"hljs-number\">4<\/span>, <span class=\"hljs-number\">8<\/span>])\nsame = torch.as_tensor(x)\nconverted = torch.as_tensor(x, dtype=torch.float32)\nx&#91;<span class=\"hljs-number\">1<\/span>] = <span class=\"hljs-number\">5<\/span>\n<span class=\"hljs-keyword\">print<\/span>(same)                  <span class=\"hljs-comment\"># tensor(&#91;4, 5])<\/span>\n<span class=\"hljs-keyword\">print<\/span>(converted)             <span class=\"hljs-comment\"># tensor(&#91;4., 8.])  (copy, not updated)<\/span>\n\n<span class=\"hljs-comment\"># 4. torch.tensor: always copies<\/span>\ny = np.<span class=\"hljs-keyword\">array<\/span>(&#91;<span class=\"hljs-number\">2<\/span>, <span class=\"hljs-number\">2<\/span>])\ncopy = torch.tensor(y)\ny&#91;<span class=\"hljs-number\">1<\/span>] = <span class=\"hljs-number\">4<\/span>\n<span class=\"hljs-keyword\">print<\/span>(copy)                  <span class=\"hljs-comment\"># tensor(&#91;2, 2])<\/span>\n\n<span class=\"hljs-comment\"># 5. Check sharing explicitly<\/span>\n<span class=\"hljs-keyword\">print<\/span>(np.shares_memory(arr, t2.numpy()))   <span class=\"hljs-comment\"># True<\/span>\n<span class=\"hljs-keyword\">print<\/span>(np.shares_memory(y, copy.numpy()))   <span class=\"hljs-comment\"># False<\/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\n<p class=\"wp-block-paragraph\">Sections 1 and 2 match the first half of the notebook. Section 3 adds the case the notebook leaves out: passing a different <code>dtype<\/code> to <code>torch.as_tensor()<\/code> forces a copy, so the tensor stops following the array. Section 4 matches the notebook&#039;s last cells.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> On Windows with NumPy versions before 2.0, the default integer type is 32-bit. There, <code>same<\/code> prints as <code>tensor([4, 5], dtype=torch.int32)<\/code>. On Linux and macOS it is int64, which PyTorch does not show in the output.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Converting GPU and autograd tensors to NumPy<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">NumPy arrays live only in CPU memory and know nothing about autograd. That is why <code>tensor.numpy()<\/code> refuses two common kinds of tensor. In real training code you will usually have to detach the tensor and move it to the CPU first.<\/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\">import torch\n\ndevice = <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>\nw = torch.rand(<span class=\"hljs-number\">3<\/span>, requires_grad=<span class=\"hljs-keyword\">True<\/span>, device=device)\n\n<span class=\"hljs-comment\"># w.numpy() raises an error: the tensor requires grad (and may be on the GPU)<\/span>\n\nw_np = w.detach().cpu().numpy()   <span class=\"hljs-comment\"># standard pattern<\/span>\n<span class=\"hljs-keyword\">print<\/span>(w_np.dtype, w_np.shape)     <span class=\"hljs-comment\"># float32 (3,)<\/span>\n\n<span class=\"hljs-comment\"># Recent PyTorch releases also accept a shortcut that detaches and copies as needed<\/span>\nw_np2 = w.numpy(force=<span class=\"hljs-keyword\">True<\/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<ul class=\"wp-block-list\">\n<li><code>detach()<\/code> returns a tensor that shares data with <code>w<\/code> but has no gradient history. It does not copy anything.<\/li>\n\n\n<li><code>cpu()<\/code> copies the data to host memory if the tensor is on a GPU. If it is already on the CPU, it returns the same tensor.<\/li>\n\n\n<li>Once the data has gone through a GPU, the NumPy array no longer shares memory with the original tensor. Writing to the array has no effect on the model.<\/li>\n\n\n<li>Going the other way, <code>torch.from_numpy(arr).to(&quot;cuda&quot;)<\/code> or <code>torch.as_tensor(arr, device=&quot;cuda&quot;)<\/code> always copies, because the array is in CPU memory.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Watch the dtype: float64 versus float32<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">NumPy creates float arrays as <code>float64<\/code> by default, and <code>torch.from_numpy()<\/code> keeps that dtype. That is why the notebook shows <code>dtype=torch.float64<\/code>. PyTorch layers use <code>float32<\/code> by default, so feeding them a float64 tensor fails with a dtype mismatch error such as <code>mat1 and mat2 must have the same dtype<\/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\">import numpy <span class=\"hljs-keyword\">as<\/span> np\nimport torch\n\nfeatures = np.random.rand(<span class=\"hljs-number\">8<\/span>, <span class=\"hljs-number\">4<\/span>)               <span class=\"hljs-comment\"># float64<\/span>\nmodel = torch.nn.Linear(<span class=\"hljs-number\">4<\/span>, <span class=\"hljs-number\">1<\/span>)                 <span class=\"hljs-comment\"># float32 weights<\/span>\n\n<span class=\"hljs-comment\"># Option 1: convert in NumPy, then share memory<\/span>\nx = torch.from_numpy(features.astype(np.float32))\n\n<span class=\"hljs-comment\"># Option 2: convert in PyTorch (this makes a copy)<\/span>\nx = torch.from_numpy(features).float()\n\n<span class=\"hljs-comment\"># Option 3: one call that converts and copies only if needed<\/span>\nx = torch.as_tensor(features, dtype=torch.float32)\n\n<span class=\"hljs-keyword\">print<\/span>(model(x).shape)                         <span class=\"hljs-comment\"># torch.Size(&#91;8, 1])<\/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\">Integer arrays have the same issue. Labels for <code>nn.CrossEntropyLoss<\/code> must be <code>int64<\/code> (<code>torch.long<\/code>). Image data loaded as <code>uint8<\/code> usually needs <code>.float()<\/code> and scaling before it goes into a network.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Common errors and how to fix them<\/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>can&#039;t convert cuda:0 device type tensor to numpy<\/code><\/td><td>Calling <code>.numpy()<\/code> on a GPU tensor<\/td><td><code>t.cpu().numpy()<\/code><\/td><\/tr><tr><td><code>Can&#039;t call numpy() on Tensor that requires grad<\/code><\/td><td>Tensor is part of the autograd graph<\/td><td><code>t.detach().numpy()<\/code> or <code>t.detach().cpu().numpy()<\/code><\/td><\/tr><tr><td><code>At least one stride in the given numpy array is negative<\/code><\/td><td>Array came from <code>arr[::-1]<\/code>, <code>np.flip()<\/code> or a similar view<\/td><td><code>torch.from_numpy(arr.copy())<\/code> or <code>np.ascontiguousarray(arr)<\/code><\/td><\/tr><tr><td><code>The given NumPy array is not writable<\/code> (warning)<\/td><td>Array is read-only, for example a view returned by some image libraries<\/td><td>Pass <code>arr.copy()<\/code>, or use <code>torch.tensor(arr)<\/code> to copy<\/td><\/tr><tr><td><code>can&#039;t convert np.ndarray of type numpy.object_<\/code><\/td><td>Ragged list or mixed types in the array<\/td><td>Pad sequences to one length or build the array with an explicit numeric <code>dtype<\/code><\/td><\/tr><tr><td><code>mat1 and mat2 must have the same dtype<\/code><\/td><td>float64 input sent to float32 layers<\/td><td>Convert with <code>.float()<\/code> or <code>astype(np.float32)<\/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 markdown above the <code>torch.from_numpy<\/code> sharing demo refers to <code>tensor<\/code> and <code>numpy_from_tensor<\/code> and says that modifying the original array changes them. The cell actually modifies <code>tensor_from_numpy<\/code> and shows the change in <code>numpy_arr<\/code>. Read it as: <strong><code>tensor_from_numpy<\/code> and <code>numpy_arr<\/code> share memory, so a change to either one is visible in the other.<\/strong><\/li>\n\n\n<li>The heading on the <code>torch.as_tensor<\/code> cell only covers input that is already a tensor. For a NumPy array, <code>as_tensor<\/code> also shares memory when the dtype and device match. If you request a different dtype or device, it copies.<\/li>\n\n\n<li>The claim that NumPy arrays and tensors share memory applies to CPU tensors only. GPU tensors must be copied to the CPU first.<\/li>\n\n\n<li>&quot;Interoperablity&quot; in the first heading should read &quot;Interoperability&quot;.<\/li>\n\n\n<li>The notebook kernel targets Python 3.7, which current PyTorch releases no longer support. Use a newer Python 3 version.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Best practices<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Use <code>torch.from_numpy()<\/code> when you want zero-copy speed and you control the array&#039;s lifetime, for example inside a <code>Dataset.__getitem__<\/code> that builds a new array on every call.<\/li>\n\n\n<li>Use <code>torch.tensor()<\/code> or <code>.clone()<\/code> when the source array may be changed later, such as a buffer that gets reused or a preprocessing cache.<\/li>\n\n\n<li>To copy an existing tensor, use <code>t.clone().detach()<\/code> instead of <code>torch.tensor(t)<\/code>. PyTorch prints a warning recommending this.<\/li>\n\n\n<li>Set the dtype on purpose at the boundary between NumPy and PyTorch, usually <code>float32<\/code> for features and <code>int64<\/code> for class labels.<\/li>\n\n\n<li>In evaluation code, convert outputs with <code>outputs.detach().cpu().numpy()<\/code> inside <code>torch.no_grad()<\/code>, so you do not keep autograd graphs alive.<\/li>\n\n\n<li>When behaviour surprises you, check with <code>np.shares_memory()<\/code> instead of guessing.<\/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\">Does tensor.numpy() copy the data?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">No. For a CPU tensor, <code>tensor.numpy()<\/code> returns an array that uses the same memory, so in-place changes on either side show up on the other. Use <code>tensor.numpy().copy()<\/code> or <code>tensor.clone().numpy()<\/code> if you need an independent array.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">What is the difference between torch.from_numpy and torch.tensor?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><code>torch.from_numpy()<\/code> always shares memory with the source array and keeps its dtype. <code>torch.tensor()<\/code> always copies the data, so later changes to the array do not affect the tensor.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">When does torch.as_tensor share memory with a NumPy array?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">It shares memory when the array&#039;s dtype is supported by PyTorch and you do not ask for a different dtype or device. If you pass <code>dtype=torch.float32<\/code> for a float64 array, or <code>device=&#039;cuda&#039;<\/code>, it creates a copy.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">How do I convert a CUDA tensor to a NumPy array?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Move the tensor to the CPU first, and detach it if it requires gradients: <code>t.detach().cpu().numpy()<\/code>. Recent PyTorch releases also support <code>t.numpy(force=True)<\/code>, which does the same in one call.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Why is my tensor float64 after converting from NumPy?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">NumPy float arrays default to <code>float64<\/code>, and <code>torch.from_numpy()<\/code> keeps the source dtype. Convert with <code>.float()<\/code>, <code>arr.astype(np.float32)<\/code> or <code>torch.as_tensor(arr, dtype=torch.float32)<\/code> before passing the data to a model.<\/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 to convert data between PyTorch tensors and NumPy arrays using tensor.numpy(), torch.from_numpy(), torch.as_tensor() and torch.tensor(). The main point is memory: the first three&#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":[7184,7364],"class_list":["post-47565","post","type-post","status-publish","format-standard","hentry","category-machine-learning","tag-numpy","tag-pytorch"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/47565","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=47565"}],"version-history":[{"count":2,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/47565\/revisions"}],"predecessor-version":[{"id":80167,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/47565\/revisions\/80167"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=47565"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=47565"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=47565"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}