{"id":53929,"date":"2025-09-25T16:38:10","date_gmt":"2025-09-25T06:38:10","guid":{"rendered":"https:\/\/www.cloudproinc.com.au\/?p=53929"},"modified":"2025-09-25T16:38:12","modified_gmt":"2025-09-25T06:38:12","slug":"turn-a-list-into-a-tensor-in-python","status":"publish","type":"post","link":"https:\/\/cloudproinc.azurewebsites.net\/index.php\/2025\/09\/25\/turn-a-list-into-a-tensor-in-python\/","title":{"rendered":"Turn a List into a Tensor in Python"},"content":{"rendered":"\n<p>In this blog post Turn a List into a Tensor in Python with NumPy, PyTorch, TensorFlow we will turn everyday Python lists into high-performance tensors you can train models with or crunch data on GPUs.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>Converting a list to a tensor sounds simple, and it is. But doing it well\u2014choosing the right dtype, handling ragged data, avoiding costly copies, and putting tensors on the right device\u2014can save you hours and accelerate your pipeline. In this guide, we\u2019ll cover a practical path from basic conversion to production-ready tips. We\u2019ll also explain the technology behind tensors so you know why these steps matter.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-what-is-a-tensor-and-why-it-matters\">What is a tensor and why it matters<\/h2>\n\n\n\n<p>A <a href=\"https:\/\/www.cloudproinc.com.au\/index.php\/category\/tensor\/\">tensor <\/a>is a multi-dimensional array with a defined shape and data type. Think of it as a generalization of vectors and matrices to any number of dimensions. Tensors power modern numerical computing and machine learning because they:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Enable vectorized operations that run fast in C\/C++ backends.<\/li>\n\n\n\n<li>Support GPU\/TPU acceleration.<\/li>\n\n\n\n<li>Carry metadata (shape, dtype, device) for efficient execution.<\/li>\n<\/ul>\n\n\n\n<p>The main technologies you\u2019ll use are:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>NumPy<\/strong>: The foundational CPU array library for Python.<\/li>\n\n\n\n<li><strong><a href=\"https:\/\/www.cloudproinc.com.au\/index.php\/category\/pytorch\/\">PyTorch<\/a><\/strong>: A deep learning framework with eager execution and Pythonic APIs.<\/li>\n\n\n\n<li><strong>TensorFlow<\/strong>: A deep learning framework with graph execution and Keras integration; supports <code>RaggedTensor<\/code> for variable-length data.<\/li>\n<\/ul>\n\n\n\n<p>Under the hood, all three store contiguous blocks of memory (when possible), record shape and dtype, and dispatch optimized kernels for math ops. Getting from a Python list (flexible but slow) to a tensor (structured and fast) is your gateway to scalable compute.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-checklist-before-you-convert\">Checklist before you convert<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Is your list regular?<\/strong> Nested lists must have equal lengths along each dimension, or you\u2019ll get object dtypes or errors.<\/li>\n\n\n\n<li><strong>What dtype do you want?<\/strong> Common defaults: <code>float32<\/code> for neural nets, <code>int64<\/code> for indices\/labels. Be explicit.<\/li>\n\n\n\n<li><strong>Where will it live?<\/strong> CPU by default; move to GPU for training\/inference if available.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-quick-start-from-list-to-tensor\">Quick start: from list to tensor<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-pytorch\">PyTorch<\/h3>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background has-link-color wp-elements-9a7487750cd905e136d459f79493e039\"><code>import torch\n\n# Regular 2D list\nlst = &#91;&#91;1, 2, 3], &#91;4, 5, 6]]\n\n# Create a tensor (copy) with explicit dtype\nx = torch.tensor(lst, dtype=torch.float32)\nprint(x.shape, x.dtype)  # torch.Size(&#91;2, 3]) torch.float32\n\n# Move to GPU if available\ndevice = torch.device(\"cuda\" if torch.cuda.is_available() else \"cpu\")\nx = x.to(device)\n<\/code><\/pre>\n\n\n\n<p>Performance tip: for large data, first convert to a NumPy array and then use <code>torch.from_numpy<\/code> for a zero-copy view (CPU only):<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background has-link-color wp-elements-999f229493da30e0f509aa964eb873ea\"><code>import numpy as np\narr = np.asarray(lst, dtype=np.float32)  # no copy if already an array\nx = torch.from_numpy(arr)                # shares memory with arr (CPU)\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-tensorflow\">TensorFlow<\/h3>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background has-link-color wp-elements-fcaf3f5e27806ec4fd079201975ef126\"><code>import tensorflow as tf\n\nlst = &#91;&#91;1, 2, 3], &#91;4, 5, 6]]\nx = tf.convert_to_tensor(lst, dtype=tf.float32)\nprint(x.shape, x.dtype)  # (2, 3) &lt;dtype: 'float32'&gt;\n\n# Uses GPU automatically if available for ops\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-numpy\">NumPy<\/h3>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background has-link-color wp-elements-b7888d5447401156f87a0da420d7692b\"><code>import numpy as np\n\nlst = &#91;&#91;1, 2, 3], &#91;4, 5, 6]]\narr = np.array(lst, dtype=np.float32)\nprint(arr.shape, arr.dtype)  # (2, 3) float32\n<\/code><\/pre>\n\n\n\n<p>NumPy arrays are often the interchange format. From there, PyTorch or TensorFlow convert efficiently.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-dtypes-and-precision\">Dtypes and precision<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>float32<\/strong>: default for deep learning; good balance of speed and accuracy.<\/li>\n\n\n\n<li><strong>float64<\/strong>: use for scientific computing that needs high precision.<\/li>\n\n\n\n<li><strong>int64\/int32<\/strong>: use for labels, indices, or masks.<\/li>\n\n\n\n<li><strong>bfloat16\/float16<\/strong>: use with mixed precision training on supported hardware.<\/li>\n<\/ul>\n\n\n\n<p>Be explicit to avoid silent upcasts\/downcasts. Example:<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background has-link-color wp-elements-6ea668574d6c673fc686c20559c752f6\"><code># PyTorch\nx = torch.tensor(lst, dtype=torch.float32)\n\n# TensorFlow\nx = tf.convert_to_tensor(lst, dtype=tf.int64)\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-ragged-and-variable-length-lists\">Ragged and variable-length lists<\/h2>\n\n\n\n<p>If your nested lists have different lengths (e.g., tokenized sentences), a normal dense tensor won\u2019t work without processing.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-pad-to-a-fixed-length\">Pad to a fixed length<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>PyTorch<\/strong>:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background has-link-color wp-elements-7ee651918a588b9fac3bad5d9dd8b1c8\"><code>import torch\nfrom torch.nn.utils.rnn import pad_sequence\n\nseqs = &#91;torch.tensor(&#91;1, 2, 3]), torch.tensor(&#91;4, 5])]\n# Pad to the length of the longest sequence (value=0)\npadded = pad_sequence(seqs, batch_first=True, padding_value=0)\n# padded shape: &#91;2, 3]\n<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>TensorFlow<\/strong>:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background has-link-color wp-elements-fa584245b26d12fe5387c123ccb461ea\"><code>import tensorflow as tf\nseqs = &#91;&#91;1, 2, 3], &#91;4, 5]]\npadded = tf.keras.preprocessing.sequence.pad_sequences(seqs, padding='post', value=0)\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-use-ragged-tensors-tensorflow\">Use ragged tensors (TensorFlow)<\/h3>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background has-link-color wp-elements-e5158a0d9667ba46ac1b162609d79acb\"><code>rt = tf.ragged.constant(&#91;&#91;1, 2, 3], &#91;4, 5]])\nprint(rt.shape)  # (2, None)\n<\/code><\/pre>\n\n\n\n<p>In PyTorch, keep lists of tensors or use <code>PackedSequence<\/code> for RNNs.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-shape-sanity-checks\">Shape sanity checks<\/h2>\n\n\n\n<p>Shape bugs are top offenders. Validate early:<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background has-link-color wp-elements-67462011c9cf618ec1d8a88a78d9d3d1\"><code># Expecting batches of 32 samples, each with 10 features\nx = torch.tensor(data, dtype=torch.float32)\nassert x.ndim == 2 and x.shape&#91;1] == 10\n\n# For images: NCHW in PyTorch, NHWC in TensorFlow\nimg = torch.tensor(images, dtype=torch.float32)\nassert img.ndim == 4 and img.shape&#91;1] in (1, 3)\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-performance-tips-that-pay-off\">Performance tips that pay off<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Avoid Python loops.<\/strong> Build a single list of lists, then convert once.<\/li>\n\n\n\n<li><strong>Prefer asarray + from_numpy.<\/strong> <code>np.asarray<\/code> avoids copies; <code>torch.from_numpy<\/code> shares memory on CPU.<\/li>\n\n\n\n<li><strong>Batch work.<\/strong> Convert and process in batches to fit memory.<\/li>\n\n\n\n<li><strong>Pin memory (PyTorch dataloaders).<\/strong> Speeds up host-to-GPU transfer.<\/li>\n\n\n\n<li><strong>Place tensors early.<\/strong> Create directly on device when feasible, e.g., <code>torch.tensor(..., device='cuda')<\/code>.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-common-errors-and-quick-fixes\">Common errors and quick fixes<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>ValueError: too many dimensions<\/strong> or uneven shapes: Ensure lists are rectangular or pad\/ragged.<\/li>\n\n\n\n<li><strong>Object dtype<\/strong> in NumPy: Caused by irregular lists. Fix by padding or constructing uniform arrays.<\/li>\n\n\n\n<li><strong>Device mismatch<\/strong>: In PyTorch, move all tensors to the same device: <code>x.to('cuda')<\/code>.<\/li>\n\n\n\n<li><strong>Dtype mismatch<\/strong>: Cast explicitly before ops, e.g., <code>x.float()<\/code> or <code>tf.cast(x, tf.float32)<\/code>.<\/li>\n\n\n\n<li><strong>No grad when expected<\/strong>: PyTorch parameters need <code>requires_grad=True<\/code>.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-putting-it-together-a-tidy-conversion-pipeline\">Putting it together: a tidy conversion pipeline<\/h2>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background has-link-color wp-elements-c5f4c3338b914a39d1f9eb80306d246d\"><code># Example: features (list of lists) and labels (list)\nimport numpy as np\nimport torch\nimport tensorflow as tf\n\nfeatures = &#91;&#91;0.1, 0.2, 0.3], &#91;0.0, -0.1, 0.5], &#91;1.2, 0.4, 0.7]]\nlabels = &#91;1, 0, 1]\n\n# 1) Validate shapes\nfeat_len = len(features&#91;0])\nassert all(len(f) == feat_len for f in features), \"Irregular feature lengths\"\n\n# 2) Convert to NumPy (efficient base)\nX_np = np.asarray(features, dtype=np.float32)\ny_np = np.asarray(labels, dtype=np.int64)\n\n# 3a) PyTorch tensors (zero-copy on CPU)\nX_t = torch.from_numpy(X_np)  \ny_t = torch.from_numpy(y_np)\n\n# Optional: move to GPU\nif torch.cuda.is_available():\n    X_t = X_t.to('cuda')\n    y_t = y_t.to('cuda')\n\n# 3b) TensorFlow tensors\nX_tf = tf.convert_to_tensor(X_np)  # keeps float32\ny_tf = tf.convert_to_tensor(y_np)  # int64\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-when-to-choose-which-path\">When to choose which path<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>PyTorch-first workflows<\/strong>: Convert via NumPy and <code>torch.from_numpy<\/code> for speed; use <code>Dataset<\/code>\/<code>DataLoader<\/code> with <code>pin_memory=True<\/code>.<\/li>\n\n\n\n<li><strong>TensorFlow\/Keras pipelines<\/strong>: Stick to <code>tf.convert_to_tensor<\/code> and <code>tf.data.Dataset.from_tensor_slices<\/code>; use <code>RaggedTensor<\/code> for variable-length inputs.<\/li>\n\n\n\n<li><strong>CPU analytics<\/strong>: NumPy arrays are perfect; only move to tensors when needed by a framework.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-troubleshooting-checklist\">Troubleshooting checklist<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Print <code>shape<\/code>, <code>dtype<\/code>, and (for PyTorch) <code>device<\/code> right after conversion.<\/li>\n\n\n\n<li>Assert invariants: batch size, feature count, channel order.<\/li>\n\n\n\n<li>Benchmark conversion with large data: prefer fewer, larger conversions.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-key-takeaways\">Key takeaways<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Tensors are structured, typed, and fast; lists are flexible but slow.<\/li>\n\n\n\n<li>Be explicit about dtype and validate shapes early.<\/li>\n\n\n\n<li>Use NumPy as an efficient bridge; avoid unnecessary copies.<\/li>\n\n\n\n<li>Handle ragged data by padding or using ragged-native types.<\/li>\n\n\n\n<li>Place tensors on the right device for acceleration.<\/li>\n<\/ul>\n\n\n\n<p>If you\u2019re productionizing data or ML pipelines, getting these basics right reduces latency and bugs. At CloudProinc.com.au, we help teams streamline data flows and model training across clouds and GPUs\u2014reach out if you\u2019d like a hand optimizing your stack.<\/p>\n\n\n\n<ul class=\"wp-block-yoast-seo-related-links yoast-seo-related-links\">\n<li><a href=\"https:\/\/www.cloudproinc.com.au\/index.php\/2025\/09\/18\/get-started-with-tensors-with-pytorch\/\">Get Started With Tensors With PyTorch<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.cloudproinc.com.au\/index.php\/2025\/08\/27\/what-are-tensors-in-ai-and-large-language-models-llms\/\">What Are Tensors in AI and Large Language Models (LLMs)?<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.cloudproinc.com.au\/index.php\/2025\/09\/25\/mastering-common-tensor-operations\/\">Mastering Common Tensor Operations<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.cloudproinc.com.au\/index.php\/2025\/09\/18\/the-autonomy-of-tensors\/\">The Autonomy of Tensors<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.cloudproinc.com.au\/index.php\/2025\/09\/25\/keras-functional-api\/\">Keras Functional API<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to convert Python lists into tensors using NumPy, PyTorch, and TensorFlow, with tips on shapes, dtypes, performance, and common pitfalls.<\/p>\n","protected":false},"author":1,"featured_media":53937,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_yoast_wpseo_focuskw":"Turn a List into a Tensor in Python","_yoast_wpseo_title":"","_yoast_wpseo_metadesc":"Learn how to turn a list into a tensor in Python using NumPy, PyTorch, and TensorFlow for better data processing.","_yoast_wpseo_opengraph-title":"","_yoast_wpseo_opengraph-description":"","_yoast_wpseo_twitter-title":"","_yoast_wpseo_twitter-description":"","_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[24,13,93,92],"tags":[],"class_list":["post-53929","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai","category-blog","category-tensor","category-tensorflow"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.3 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Turn a List into a Tensor in Python - CPI Consulting<\/title>\n<meta name=\"description\" content=\"Learn how to turn a list into a tensor in Python using NumPy, PyTorch, and TensorFlow for better data processing.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.cloudproinc.com.au\/index.php\/2025\/09\/25\/turn-a-list-into-a-tensor-in-python\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Turn a List into a Tensor in Python\" \/>\n<meta property=\"og:description\" content=\"Learn how to turn a list into a tensor in Python using NumPy, PyTorch, and TensorFlow for better data processing.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.cloudproinc.com.au\/index.php\/2025\/09\/25\/turn-a-list-into-a-tensor-in-python\/\" \/>\n<meta property=\"og:site_name\" content=\"CPI Consulting\" \/>\n<meta property=\"article:published_time\" content=\"2025-09-25T06:38:10+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-09-25T06:38:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cloudproinc.azurewebsites.net\/wp-content\/uploads\/2025\/09\/turn-a-list-into-a-tensor-in-python-with-numpy-pytorch-tensorflow.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1536\" \/>\n\t<meta property=\"og:image:height\" content=\"1024\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"CPI Staff\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"CPI Staff\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/index.php\\\/2025\\\/09\\\/25\\\/turn-a-list-into-a-tensor-in-python\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/index.php\\\/2025\\\/09\\\/25\\\/turn-a-list-into-a-tensor-in-python\\\/\"},\"author\":{\"name\":\"CPI Staff\",\"@id\":\"https:\\\/\\\/cloudproinc.azurewebsites.net\\\/#\\\/schema\\\/person\\\/192eeeb0ce91062126ce3822ae88fe6e\"},\"headline\":\"Turn a List into a Tensor in Python\",\"datePublished\":\"2025-09-25T06:38:10+00:00\",\"dateModified\":\"2025-09-25T06:38:12+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/index.php\\\/2025\\\/09\\\/25\\\/turn-a-list-into-a-tensor-in-python\\\/\"},\"wordCount\":775,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/cloudproinc.azurewebsites.net\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/index.php\\\/2025\\\/09\\\/25\\\/turn-a-list-into-a-tensor-in-python\\\/#primaryimage\"},\"thumbnailUrl\":\"\\\/wp-content\\\/uploads\\\/2025\\\/09\\\/turn-a-list-into-a-tensor-in-python-with-numpy-pytorch-tensorflow.png\",\"articleSection\":[\"AI\",\"Blog\",\"Tensor\",\"TensorFlow\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.cloudproinc.com.au\\\/index.php\\\/2025\\\/09\\\/25\\\/turn-a-list-into-a-tensor-in-python\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/index.php\\\/2025\\\/09\\\/25\\\/turn-a-list-into-a-tensor-in-python\\\/\",\"url\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/index.php\\\/2025\\\/09\\\/25\\\/turn-a-list-into-a-tensor-in-python\\\/\",\"name\":\"Turn a List into a Tensor in Python - CPI Consulting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/cloudproinc.azurewebsites.net\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/index.php\\\/2025\\\/09\\\/25\\\/turn-a-list-into-a-tensor-in-python\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/index.php\\\/2025\\\/09\\\/25\\\/turn-a-list-into-a-tensor-in-python\\\/#primaryimage\"},\"thumbnailUrl\":\"\\\/wp-content\\\/uploads\\\/2025\\\/09\\\/turn-a-list-into-a-tensor-in-python-with-numpy-pytorch-tensorflow.png\",\"datePublished\":\"2025-09-25T06:38:10+00:00\",\"dateModified\":\"2025-09-25T06:38:12+00:00\",\"description\":\"Learn how to turn a list into a tensor in Python using NumPy, PyTorch, and TensorFlow for better data processing.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/index.php\\\/2025\\\/09\\\/25\\\/turn-a-list-into-a-tensor-in-python\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.cloudproinc.com.au\\\/index.php\\\/2025\\\/09\\\/25\\\/turn-a-list-into-a-tensor-in-python\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/index.php\\\/2025\\\/09\\\/25\\\/turn-a-list-into-a-tensor-in-python\\\/#primaryimage\",\"url\":\"\\\/wp-content\\\/uploads\\\/2025\\\/09\\\/turn-a-list-into-a-tensor-in-python-with-numpy-pytorch-tensorflow.png\",\"contentUrl\":\"\\\/wp-content\\\/uploads\\\/2025\\\/09\\\/turn-a-list-into-a-tensor-in-python-with-numpy-pytorch-tensorflow.png\",\"width\":1536,\"height\":1024},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/index.php\\\/2025\\\/09\\\/25\\\/turn-a-list-into-a-tensor-in-python\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/cloudproinc.azurewebsites.net\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Turn a List into a Tensor in Python\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/cloudproinc.azurewebsites.net\\\/#website\",\"url\":\"https:\\\/\\\/cloudproinc.azurewebsites.net\\\/\",\"name\":\"Cloud Pro Inc - CPI Consulting Pty Ltd\",\"description\":\"Cloud, AI &amp; Cybersecurity Consulting | Melbourne\",\"publisher\":{\"@id\":\"https:\\\/\\\/cloudproinc.azurewebsites.net\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/cloudproinc.azurewebsites.net\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/cloudproinc.azurewebsites.net\\\/#organization\",\"name\":\"Cloud Pro Inc - Cloud Pro Inc - CPI Consulting Pty Ltd\",\"url\":\"https:\\\/\\\/cloudproinc.azurewebsites.net\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/cloudproinc.azurewebsites.net\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"\\\/wp-content\\\/uploads\\\/2022\\\/01\\\/favfinalfile.png\",\"contentUrl\":\"\\\/wp-content\\\/uploads\\\/2022\\\/01\\\/favfinalfile.png\",\"width\":500,\"height\":500,\"caption\":\"Cloud Pro Inc - Cloud Pro Inc - CPI Consulting Pty Ltd\"},\"image\":{\"@id\":\"https:\\\/\\\/cloudproinc.azurewebsites.net\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/cloudproinc.azurewebsites.net\\\/#\\\/schema\\\/person\\\/192eeeb0ce91062126ce3822ae88fe6e\",\"name\":\"CPI Staff\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2d96eeb53b791d92c8c50dd667e3beec92c93253bb6ff21c02cfa8ca73665c70?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2d96eeb53b791d92c8c50dd667e3beec92c93253bb6ff21c02cfa8ca73665c70?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2d96eeb53b791d92c8c50dd667e3beec92c93253bb6ff21c02cfa8ca73665c70?s=96&d=mm&r=g\",\"caption\":\"CPI Staff\"},\"sameAs\":[\"http:\\\/\\\/www.cloudproinc.com.au\"],\"url\":\"https:\\\/\\\/cloudproinc.azurewebsites.net\\\/index.php\\\/author\\\/cpiadmin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Turn a List into a Tensor in Python - CPI Consulting","description":"Learn how to turn a list into a tensor in Python using NumPy, PyTorch, and TensorFlow for better data processing.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.cloudproinc.com.au\/index.php\/2025\/09\/25\/turn-a-list-into-a-tensor-in-python\/","og_locale":"en_US","og_type":"article","og_title":"Turn a List into a Tensor in Python","og_description":"Learn how to turn a list into a tensor in Python using NumPy, PyTorch, and TensorFlow for better data processing.","og_url":"https:\/\/www.cloudproinc.com.au\/index.php\/2025\/09\/25\/turn-a-list-into-a-tensor-in-python\/","og_site_name":"CPI Consulting","article_published_time":"2025-09-25T06:38:10+00:00","article_modified_time":"2025-09-25T06:38:12+00:00","og_image":[{"width":1536,"height":1024,"url":"https:\/\/cloudproinc.azurewebsites.net\/wp-content\/uploads\/2025\/09\/turn-a-list-into-a-tensor-in-python-with-numpy-pytorch-tensorflow.png","type":"image\/png"}],"author":"CPI Staff","twitter_card":"summary_large_image","twitter_misc":{"Written by":"CPI Staff","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.cloudproinc.com.au\/index.php\/2025\/09\/25\/turn-a-list-into-a-tensor-in-python\/#article","isPartOf":{"@id":"https:\/\/www.cloudproinc.com.au\/index.php\/2025\/09\/25\/turn-a-list-into-a-tensor-in-python\/"},"author":{"name":"CPI Staff","@id":"https:\/\/cloudproinc.azurewebsites.net\/#\/schema\/person\/192eeeb0ce91062126ce3822ae88fe6e"},"headline":"Turn a List into a Tensor in Python","datePublished":"2025-09-25T06:38:10+00:00","dateModified":"2025-09-25T06:38:12+00:00","mainEntityOfPage":{"@id":"https:\/\/www.cloudproinc.com.au\/index.php\/2025\/09\/25\/turn-a-list-into-a-tensor-in-python\/"},"wordCount":775,"commentCount":0,"publisher":{"@id":"https:\/\/cloudproinc.azurewebsites.net\/#organization"},"image":{"@id":"https:\/\/www.cloudproinc.com.au\/index.php\/2025\/09\/25\/turn-a-list-into-a-tensor-in-python\/#primaryimage"},"thumbnailUrl":"\/wp-content\/uploads\/2025\/09\/turn-a-list-into-a-tensor-in-python-with-numpy-pytorch-tensorflow.png","articleSection":["AI","Blog","Tensor","TensorFlow"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.cloudproinc.com.au\/index.php\/2025\/09\/25\/turn-a-list-into-a-tensor-in-python\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.cloudproinc.com.au\/index.php\/2025\/09\/25\/turn-a-list-into-a-tensor-in-python\/","url":"https:\/\/www.cloudproinc.com.au\/index.php\/2025\/09\/25\/turn-a-list-into-a-tensor-in-python\/","name":"Turn a List into a Tensor in Python - CPI Consulting","isPartOf":{"@id":"https:\/\/cloudproinc.azurewebsites.net\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.cloudproinc.com.au\/index.php\/2025\/09\/25\/turn-a-list-into-a-tensor-in-python\/#primaryimage"},"image":{"@id":"https:\/\/www.cloudproinc.com.au\/index.php\/2025\/09\/25\/turn-a-list-into-a-tensor-in-python\/#primaryimage"},"thumbnailUrl":"\/wp-content\/uploads\/2025\/09\/turn-a-list-into-a-tensor-in-python-with-numpy-pytorch-tensorflow.png","datePublished":"2025-09-25T06:38:10+00:00","dateModified":"2025-09-25T06:38:12+00:00","description":"Learn how to turn a list into a tensor in Python using NumPy, PyTorch, and TensorFlow for better data processing.","breadcrumb":{"@id":"https:\/\/www.cloudproinc.com.au\/index.php\/2025\/09\/25\/turn-a-list-into-a-tensor-in-python\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.cloudproinc.com.au\/index.php\/2025\/09\/25\/turn-a-list-into-a-tensor-in-python\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.cloudproinc.com.au\/index.php\/2025\/09\/25\/turn-a-list-into-a-tensor-in-python\/#primaryimage","url":"\/wp-content\/uploads\/2025\/09\/turn-a-list-into-a-tensor-in-python-with-numpy-pytorch-tensorflow.png","contentUrl":"\/wp-content\/uploads\/2025\/09\/turn-a-list-into-a-tensor-in-python-with-numpy-pytorch-tensorflow.png","width":1536,"height":1024},{"@type":"BreadcrumbList","@id":"https:\/\/www.cloudproinc.com.au\/index.php\/2025\/09\/25\/turn-a-list-into-a-tensor-in-python\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/cloudproinc.azurewebsites.net\/"},{"@type":"ListItem","position":2,"name":"Turn a List into a Tensor in Python"}]},{"@type":"WebSite","@id":"https:\/\/cloudproinc.azurewebsites.net\/#website","url":"https:\/\/cloudproinc.azurewebsites.net\/","name":"Cloud Pro Inc - CPI Consulting Pty Ltd","description":"Cloud, AI &amp; Cybersecurity Consulting | Melbourne","publisher":{"@id":"https:\/\/cloudproinc.azurewebsites.net\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cloudproinc.azurewebsites.net\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/cloudproinc.azurewebsites.net\/#organization","name":"Cloud Pro Inc - Cloud Pro Inc - CPI Consulting Pty Ltd","url":"https:\/\/cloudproinc.azurewebsites.net\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cloudproinc.azurewebsites.net\/#\/schema\/logo\/image\/","url":"\/wp-content\/uploads\/2022\/01\/favfinalfile.png","contentUrl":"\/wp-content\/uploads\/2022\/01\/favfinalfile.png","width":500,"height":500,"caption":"Cloud Pro Inc - Cloud Pro Inc - CPI Consulting Pty Ltd"},"image":{"@id":"https:\/\/cloudproinc.azurewebsites.net\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/cloudproinc.azurewebsites.net\/#\/schema\/person\/192eeeb0ce91062126ce3822ae88fe6e","name":"CPI Staff","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/2d96eeb53b791d92c8c50dd667e3beec92c93253bb6ff21c02cfa8ca73665c70?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/2d96eeb53b791d92c8c50dd667e3beec92c93253bb6ff21c02cfa8ca73665c70?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2d96eeb53b791d92c8c50dd667e3beec92c93253bb6ff21c02cfa8ca73665c70?s=96&d=mm&r=g","caption":"CPI Staff"},"sameAs":["http:\/\/www.cloudproinc.com.au"],"url":"https:\/\/cloudproinc.azurewebsites.net\/index.php\/author\/cpiadmin\/"}]}},"jetpack_featured_media_url":"\/wp-content\/uploads\/2025\/09\/turn-a-list-into-a-tensor-in-python-with-numpy-pytorch-tensorflow.png","jetpack-related-posts":[{"id":53893,"url":"https:\/\/cloudproinc.azurewebsites.net\/index.php\/2025\/09\/18\/get-started-with-tensors-with-pytorch\/","url_meta":{"origin":53929,"position":0},"title":"Get Started With Tensors With PyTorch","author":"CPI Staff","date":"September 18, 2025","format":false,"excerpt":"A clear, hands-on walkthrough of tensors in PyTorch. Learn creation, indexing, math, shapes, and GPU basics with concise examples you can copy-paste.","rel":"","context":"In &quot;AI&quot;","block_context":{"text":"AI","link":"https:\/\/cloudproinc.azurewebsites.net\/index.php\/category\/ai\/"},"img":{"alt_text":"","src":"\/wp-content\/uploads\/2025\/09\/tensors-made-practical-for-engineers-and-data-teams-with-pytorch.png","width":350,"height":200,"srcset":"\/wp-content\/uploads\/2025\/09\/tensors-made-practical-for-engineers-and-data-teams-with-pytorch.png 1x, \/wp-content\/uploads\/2025\/09\/tensors-made-practical-for-engineers-and-data-teams-with-pytorch.png 1.5x, \/wp-content\/uploads\/2025\/09\/tensors-made-practical-for-engineers-and-data-teams-with-pytorch.png 2x, \/wp-content\/uploads\/2025\/09\/tensors-made-practical-for-engineers-and-data-teams-with-pytorch.png 3x, \/wp-content\/uploads\/2025\/09\/tensors-made-practical-for-engineers-and-data-teams-with-pytorch.png 4x"},"classes":[]},{"id":53721,"url":"https:\/\/cloudproinc.azurewebsites.net\/index.php\/2025\/08\/27\/what-are-tensors-in-ai-and-large-language-models-llms\/","url_meta":{"origin":53929,"position":1},"title":"What Are Tensors in AI and Large Language Models (LLMs)?","author":"CPI Staff","date":"August 27, 2025","format":false,"excerpt":"In this post \"What Are Tensors in AI and Large Language Models (LLMs)?\", we\u2019ll explore what tensors are, how they are used in AI and LLMs, and why they matter for organizations looking to leverage machine learning effectively. Artificial Intelligence (AI) and Large Language Models (LLMs) like GPT-4 or LLaMA\u2026","rel":"","context":"In &quot;AI&quot;","block_context":{"text":"AI","link":"https:\/\/cloudproinc.azurewebsites.net\/index.php\/category\/ai\/"},"img":{"alt_text":"","src":"\/wp-content\/uploads\/2025\/08\/what-are-tensors-in-ai-and-large-language-models-llms.png","width":350,"height":200,"srcset":"\/wp-content\/uploads\/2025\/08\/what-are-tensors-in-ai-and-large-language-models-llms.png 1x, \/wp-content\/uploads\/2025\/08\/what-are-tensors-in-ai-and-large-language-models-llms.png 1.5x, \/wp-content\/uploads\/2025\/08\/what-are-tensors-in-ai-and-large-language-models-llms.png 2x, \/wp-content\/uploads\/2025\/08\/what-are-tensors-in-ai-and-large-language-models-llms.png 3x, \/wp-content\/uploads\/2025\/08\/what-are-tensors-in-ai-and-large-language-models-llms.png 4x"},"classes":[]},{"id":53932,"url":"https:\/\/cloudproinc.azurewebsites.net\/index.php\/2025\/09\/25\/mastering-common-tensor-operations\/","url_meta":{"origin":53929,"position":2},"title":"Mastering Common Tensor Operations","author":"CPI Staff","date":"September 25, 2025","format":false,"excerpt":"A practical guide to the tensor operations that power modern AI. Learn the essentials, from shapes and broadcasting to vectorization, autograd, and GPU performance.","rel":"","context":"In &quot;AI&quot;","block_context":{"text":"AI","link":"https:\/\/cloudproinc.azurewebsites.net\/index.php\/category\/ai\/"},"img":{"alt_text":"","src":"\/wp-content\/uploads\/2025\/09\/mastering-common-tensor-operations-for-ai-and-data-workloads.png","width":350,"height":200,"srcset":"\/wp-content\/uploads\/2025\/09\/mastering-common-tensor-operations-for-ai-and-data-workloads.png 1x, \/wp-content\/uploads\/2025\/09\/mastering-common-tensor-operations-for-ai-and-data-workloads.png 1.5x, \/wp-content\/uploads\/2025\/09\/mastering-common-tensor-operations-for-ai-and-data-workloads.png 2x, \/wp-content\/uploads\/2025\/09\/mastering-common-tensor-operations-for-ai-and-data-workloads.png 3x, \/wp-content\/uploads\/2025\/09\/mastering-common-tensor-operations-for-ai-and-data-workloads.png 4x"},"classes":[]},{"id":53890,"url":"https:\/\/cloudproinc.azurewebsites.net\/index.php\/2025\/09\/18\/the-autonomy-of-tensors\/","url_meta":{"origin":53929,"position":3},"title":"The Autonomy of Tensors","author":"CPI Staff","date":"September 18, 2025","format":false,"excerpt":"Tensors are more than arrays\u2014they carry rules, gradients, and placement hints. Learn how their autonomy drives speed and reliability, and how to harness it across training, inference, and scale.","rel":"","context":"In &quot;AI&quot;","block_context":{"text":"AI","link":"https:\/\/cloudproinc.azurewebsites.net\/index.php\/category\/ai\/"},"img":{"alt_text":"","src":"\/wp-content\/uploads\/2025\/09\/the-autonomy-of-tensors-for-smarter-faster-ml-systems-today.png","width":350,"height":200,"srcset":"\/wp-content\/uploads\/2025\/09\/the-autonomy-of-tensors-for-smarter-faster-ml-systems-today.png 1x, \/wp-content\/uploads\/2025\/09\/the-autonomy-of-tensors-for-smarter-faster-ml-systems-today.png 1.5x, \/wp-content\/uploads\/2025\/09\/the-autonomy-of-tensors-for-smarter-faster-ml-systems-today.png 2x, \/wp-content\/uploads\/2025\/09\/the-autonomy-of-tensors-for-smarter-faster-ml-systems-today.png 3x, \/wp-content\/uploads\/2025\/09\/the-autonomy-of-tensors-for-smarter-faster-ml-systems-today.png 4x"},"classes":[]},{"id":53931,"url":"https:\/\/cloudproinc.azurewebsites.net\/index.php\/2025\/09\/25\/keras-functional-api\/","url_meta":{"origin":53929,"position":4},"title":"Keras Functional API","author":"CPI Staff","date":"September 25, 2025","format":false,"excerpt":"A clear, practical guide to Keras Functional API\u2014why it matters and how to build flexible deep learning models with branching, sharing, and custom workflows.","rel":"","context":"In &quot;AI&quot;","block_context":{"text":"AI","link":"https:\/\/cloudproinc.azurewebsites.net\/index.php\/category\/ai\/"},"img":{"alt_text":"","src":"\/wp-content\/uploads\/2025\/09\/keras-functional-api-demystified-for-flexible-deep-learning-workflows.png","width":350,"height":200,"srcset":"\/wp-content\/uploads\/2025\/09\/keras-functional-api-demystified-for-flexible-deep-learning-workflows.png 1x, \/wp-content\/uploads\/2025\/09\/keras-functional-api-demystified-for-flexible-deep-learning-workflows.png 1.5x, \/wp-content\/uploads\/2025\/09\/keras-functional-api-demystified-for-flexible-deep-learning-workflows.png 2x, \/wp-content\/uploads\/2025\/09\/keras-functional-api-demystified-for-flexible-deep-learning-workflows.png 3x, \/wp-content\/uploads\/2025\/09\/keras-functional-api-demystified-for-flexible-deep-learning-workflows.png 4x"},"classes":[]},{"id":53914,"url":"https:\/\/cloudproinc.azurewebsites.net\/index.php\/2025\/09\/21\/run-pytorch-in-net-with-torchsharp\/","url_meta":{"origin":53929,"position":5},"title":"Run PyTorch in .NET with TorchSharp","author":"CPI Staff","date":"September 21, 2025","format":false,"excerpt":"Build and ship PyTorch models in .NET using TorchSharp, ONNX, or a Python service. Practical steps, code, and deployment tips for teams on Windows, Linux, and containers.","rel":"","context":"In &quot;.NET&quot;","block_context":{"text":".NET","link":"https:\/\/cloudproinc.azurewebsites.net\/index.php\/category\/net\/"},"img":{"alt_text":"","src":"\/wp-content\/uploads\/2025\/09\/practical-ways-to-run-pytorch-in-net-with-torchsharp-and-more.png","width":350,"height":200,"srcset":"\/wp-content\/uploads\/2025\/09\/practical-ways-to-run-pytorch-in-net-with-torchsharp-and-more.png 1x, \/wp-content\/uploads\/2025\/09\/practical-ways-to-run-pytorch-in-net-with-torchsharp-and-more.png 1.5x, \/wp-content\/uploads\/2025\/09\/practical-ways-to-run-pytorch-in-net-with-torchsharp-and-more.png 2x, \/wp-content\/uploads\/2025\/09\/practical-ways-to-run-pytorch-in-net-with-torchsharp-and-more.png 3x, \/wp-content\/uploads\/2025\/09\/practical-ways-to-run-pytorch-in-net-with-torchsharp-and-more.png 4x"},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/cloudproinc.azurewebsites.net\/index.php\/wp-json\/wp\/v2\/posts\/53929","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cloudproinc.azurewebsites.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudproinc.azurewebsites.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudproinc.azurewebsites.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudproinc.azurewebsites.net\/index.php\/wp-json\/wp\/v2\/comments?post=53929"}],"version-history":[{"count":2,"href":"https:\/\/cloudproinc.azurewebsites.net\/index.php\/wp-json\/wp\/v2\/posts\/53929\/revisions"}],"predecessor-version":[{"id":53976,"href":"https:\/\/cloudproinc.azurewebsites.net\/index.php\/wp-json\/wp\/v2\/posts\/53929\/revisions\/53976"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cloudproinc.azurewebsites.net\/index.php\/wp-json\/wp\/v2\/media\/53937"}],"wp:attachment":[{"href":"https:\/\/cloudproinc.azurewebsites.net\/index.php\/wp-json\/wp\/v2\/media?parent=53929"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudproinc.azurewebsites.net\/index.php\/wp-json\/wp\/v2\/categories?post=53929"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudproinc.azurewebsites.net\/index.php\/wp-json\/wp\/v2\/tags?post=53929"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}