{"id":47525,"date":"2026-11-24T22:04:52","date_gmt":"2026-11-24T22:04:52","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=47525"},"modified":"2026-11-24T22:04:52","modified_gmt":"2026-11-24T22:04:52","slug":"tensorsflow-lab3-tensorsflow-eagerexecution","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/tensorsflow-lab3-tensorsflow-eagerexecution\/","title":{"rendered":"Tensorsflow Lab3 &#8211; Tensorsflow EagerExecution"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">In eager execution, TensorFlow runs each operation as soon as Python calls it and gives you a concrete value back, with no graph to build first. It has been the default since TensorFlow 2.x. This lab covers <code>tf.executing_eagerly()<\/code>, constants, variables and ordinary Python control flow, and adds corrected outputs, gradients with <code>GradientTape<\/code> and how eager mode relates to <code>tf.function<\/code>.<\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/devops-school\/8075a9c64edb42654f4c089ea1a15748.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 eager execution is and why it matters<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">TensorFlow 1.x worked in two steps. You defined a static graph, then ran it inside a <code>tf.Session<\/code>. Intermediate values were symbolic, so you couldn&#039;t print them or use them in a Python <code>if<\/code> statement. Eager execution drops that split. Each call such as <code>tf.matmul<\/code> or <code>tf.add<\/code> runs right away and returns a <code>tf.Tensor<\/code> that already holds its value, which you can read with <code>.numpy()<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Eager mode is on by default in TensorFlow 2, which is why the first cell above, <code>tf.executing_eagerly()<\/code>, returns <code>True<\/code>. You can debug with <code>print<\/code> or a normal debugger, use NumPy-style code and mix TensorFlow with plain Python. For speed and deployment, you can still compile functions into graphs with <code>tf.function<\/code>, which is covered further down.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites and setup<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The notebook was saved with Python 3.7. Current TensorFlow releases need a newer Python, so check the supported versions on the TensorFlow install page and create a fresh virtual environment before you start.<\/p>\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\">python3 -m venv tf-lab\nsource tf-lab\/bin\/activate\npip install --upgrade pip\npip install tensorflow notebook\npython -c <span class=\"hljs-string\">\"import tensorflow as tf; print(tf.__version__, tf.executing_eagerly())\"<\/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<p class=\"wp-block-paragraph\">The last command prints the installed version and then <code>True<\/code>. If it prints <code>False<\/code>, some code or a legacy import has disabled eager mode. One example is <code>tf.compat.v1.disable_eager_execution()<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Understanding the tensor operations in the example<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>tf.matmul(x, x)<\/code> with <code>x = [[10.]]<\/code> is matrix multiplication. TensorFlow converts the Python list to a float32 tensor of shape (1, 1), and the result is <code>[[100.]]<\/code>. Both inputs to <code>tf.matmul<\/code> must have rank 2 or higher.<\/li>\n\n\n<li><code>tf.constant([[10, 20], [30, 40]])<\/code> infers <code>int32<\/code> because the literals are integers. Writing <code>10.0<\/code> instead would give <code>float32<\/code>.<\/li>\n\n\n<li><code>tf.add(a, 2)<\/code> broadcasts the scalar <code>2<\/code> across every element, so the result is <code>[[12, 22], [32, 42]]<\/code>.<\/li>\n\n\n<li><code>a * b<\/code> is <strong>element-wise<\/strong> multiplication, the same as <code>tf.multiply<\/code>. It is not a matrix product. For a matrix product, use <code>tf.matmul(a, b)<\/code> or <code>a @ b<\/code>.<\/li>\n\n\n<li><code>m * x + c<\/code> with three <code>tf.Variable<\/code> objects returns a plain <code>tf.Tensor<\/code>, not a variable. Arithmetic on variables always produces new tensors.<\/li>\n<\/ul>\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 tensorflow <span class=\"hljs-keyword\">as<\/span> tf\n\na = tf.constant(&#91;&#91;<span class=\"hljs-number\">10<\/span>, <span class=\"hljs-number\">20<\/span>], &#91;<span class=\"hljs-number\">30<\/span>, <span class=\"hljs-number\">40<\/span>]])\nb = tf.add(a, <span class=\"hljs-number\">2<\/span>)\n\n<span class=\"hljs-keyword\">print<\/span>(a * b)        <span class=\"hljs-comment\"># element-wise<\/span>\n<span class=\"hljs-keyword\">print<\/span>(a @ b)        <span class=\"hljs-comment\"># matrix product, same as tf.matmul(a, b)<\/span>\n<span class=\"hljs-keyword\">print<\/span>((a * b).numpy())  <span class=\"hljs-comment\"># plain NumPy array<\/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\"><span><code class=\"hljs\">tf.Tensor(\n&#91;&#91; 120  440]\n &#91; 960 1680]], shape=(2, 2), dtype=int32)\ntf.Tensor(\n&#91;&#91; 760  840]\n &#91;1640 1820]], shape=(2, 2), dtype=int32)\n&#91;&#91; 120  440]\n &#91; 960 1680]]<\/code><\/span><\/pre>\n\n\n<h2 class=\"wp-block-heading\">Corrections to the notebook<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Some of the saved outputs in the notebook come from earlier runs: the execution counters jump around (7, then 19 to 23). Two of those outputs don&#039;t match the current code, and the variable constructor is called incorrectly. Here is the corrected version:<\/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 tensorflow <span class=\"hljs-keyword\">as<\/span> tf\n\na = tf.constant(&#91;&#91;<span class=\"hljs-number\">10<\/span>, <span class=\"hljs-number\">20<\/span>], &#91;<span class=\"hljs-number\">30<\/span>, <span class=\"hljs-number\">40<\/span>]])\nb = tf.add(a, <span class=\"hljs-number\">2<\/span>)\n<span class=\"hljs-keyword\">print<\/span>(a * b)\n<span class=\"hljs-comment\"># Correct output: &#91;&#91;120 440] &#91;960 1680]]<\/span>\n<span class=\"hljs-comment\"># (the notebook shows &#91;&#91;200 231] &#91;264 299]], a stale result)<\/span>\n\n<span class=\"hljs-comment\"># Pass dtype by keyword. The second positional argument of tf.Variable is `trainable`.<\/span>\nm = tf.Variable(&#91;<span class=\"hljs-number\">4.0<\/span>, <span class=\"hljs-number\">5.0<\/span>, <span class=\"hljs-number\">6.0<\/span>], dtype=tf.float32, name=<span class=\"hljs-string\">'m'<\/span>)\nc = tf.Variable(&#91;<span class=\"hljs-number\">1.0<\/span>, <span class=\"hljs-number\">1.0<\/span>, <span class=\"hljs-number\">1.0<\/span>], dtype=tf.float32, name=<span class=\"hljs-string\">'c'<\/span>)\nx = tf.Variable(&#91;<span class=\"hljs-number\">100.0<\/span>, <span class=\"hljs-number\">100.0<\/span>, <span class=\"hljs-number\">100.0<\/span>], dtype=tf.float32, name=<span class=\"hljs-string\">'x'<\/span>)\n<span class=\"hljs-keyword\">print<\/span>(x)\n<span class=\"hljs-comment\"># &lt;tf.Variable 'x:0' shape=(3,) dtype=float32, numpy=array(&#91;100., 100., 100.], dtype=float32)&gt;<\/span>\n<span class=\"hljs-comment\"># (the notebook shows 'v:0', left over from an older run)<\/span>\n\ny = m * x + c\n<span class=\"hljs-keyword\">print<\/span>(y)  <span class=\"hljs-comment\"># tf.Tensor(&#91;401. 501. 601.], shape=(3,), dtype=float32)<\/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\"><strong>Note:<\/strong> Before you share a notebook, use <strong>Kernel &gt; Restart &amp; Run All<\/strong> so that every saved output matches the code above it.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Updating variables in place<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A <code>tf.Tensor<\/code> is immutable. A <code>tf.Variable<\/code> holds state you can change, which is how model weights are stored. Update it with <code>assign<\/code>, <code>assign_add<\/code> or <code>assign_sub<\/code>. Don&#039;t rebind it with <code>=<\/code>, because that replaces the Python object with a new tensor.<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-4\" data-shcb-language-name=\"CSS\" data-shcb-language-slug=\"css\"><span><code class=\"hljs language-css\"><span class=\"hljs-selector-tag\">x<\/span><span class=\"hljs-selector-class\">.assign<\/span>(<span class=\"hljs-selector-attr\">&#91;200.0, 200.0, 200.0]<\/span>)\n<span class=\"hljs-selector-tag\">x<\/span><span class=\"hljs-selector-class\">.assign_add<\/span>(<span class=\"hljs-selector-attr\">&#91;1.0, 1.0, 1.0]<\/span>)\n<span class=\"hljs-selector-tag\">print<\/span>(<span class=\"hljs-selector-tag\">x<\/span><span class=\"hljs-selector-class\">.numpy<\/span>())            # <span class=\"hljs-selector-attr\">&#91;201. 201. 201.]<\/span>\n<span class=\"hljs-selector-tag\">print<\/span>((<span class=\"hljs-selector-tag\">m<\/span> * <span class=\"hljs-selector-tag\">x<\/span> + <span class=\"hljs-selector-tag\">c<\/span>)<span class=\"hljs-selector-class\">.numpy<\/span>())  # <span class=\"hljs-selector-attr\">&#91; 805. 1006. 1207.]<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-4\"><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<h2 class=\"wp-block-heading\">Dynamic control flow and gradients<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Every value exists right away in eager mode. That&#039;s why the FizzBuzz-style function above can use ordinary <code>for<\/code>, <code>if<\/code> and <code>elif<\/code> on tensor values. In that function, <code>counter<\/code> is incremented but never used, so you can remove it. Calling the function <code>tensorflow<\/code> also makes the code harder to read. Here is a shorter equivalent that loops over <code>tf.range<\/code>:<\/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\">def classify(max_num):\n    <span class=\"hljs-keyword\">for<\/span> n in tf.range(max_num + <span class=\"hljs-number\">1<\/span>):\n        <span class=\"hljs-keyword\">if<\/span> n % <span class=\"hljs-number\">15<\/span> == <span class=\"hljs-number\">0<\/span>:\n            <span class=\"hljs-keyword\">print<\/span>(<span class=\"hljs-string\">'Divisible by 3 and 5:'<\/span>, n.numpy())\n        elif n % <span class=\"hljs-number\">3<\/span> == <span class=\"hljs-number\">0<\/span>:\n            <span class=\"hljs-keyword\">print<\/span>(<span class=\"hljs-string\">'Divisible by 3:'<\/span>, n.numpy())\n        elif n % <span class=\"hljs-number\">5<\/span> == <span class=\"hljs-number\">0<\/span>:\n            <span class=\"hljs-keyword\">print<\/span>(<span class=\"hljs-string\">'Divisible by 5:'<\/span>, n.numpy())\n        <span class=\"hljs-keyword\">else<\/span>:\n            <span class=\"hljs-keyword\">print<\/span>(n.numpy())\n\nclassify(<span class=\"hljs-number\">15<\/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<p class=\"wp-block-paragraph\">Eager mode also lets you compute gradients on the fly. <code>tf.GradientTape<\/code> records the operations run inside its block and then differentiates them. Training loops are built on this.<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-6\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\">w = tf.Variable(<span class=\"hljs-number\">3.0<\/span>)\nwith tf.GradientTape() <span class=\"hljs-keyword\">as<\/span> tape:\n    loss = w * w + <span class=\"hljs-number\">2.0<\/span> * w      <span class=\"hljs-comment\"># loss = w^2 + 2w<\/span>\n\ngrad = tape.gradient(loss, w)   <span class=\"hljs-comment\"># d(loss)\/dw = 2w + 2<\/span>\n<span class=\"hljs-keyword\">print<\/span>(grad)                     <span class=\"hljs-comment\"># tf.Tensor(8.0, shape=(), dtype=float32)<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-6\"><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<h2 class=\"wp-block-heading\">Eager execution versus tf.function<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Eager mode is easy to work with, but each operation goes through Python one at a time. Decorating a function with <code>@tf.function<\/code> traces it into a graph that TensorFlow can optimise and export in a SavedModel. Inside the traced function, <code>tf.executing_eagerly()<\/code> returns <code>False<\/code>.<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-7\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\">@tf<span class=\"hljs-function\">.<span class=\"hljs-keyword\">function<\/span>\n<span class=\"hljs-title\">def<\/span> <span class=\"hljs-title\">linear<\/span><span class=\"hljs-params\">(m, x, c)<\/span>:\n    <span class=\"hljs-title\">print<\/span><span class=\"hljs-params\">(<span class=\"hljs-string\">'Tracing, eager ='<\/span>, tf.executing_eagerly<span class=\"hljs-params\">()<\/span>)<\/span>  # <span class=\"hljs-title\">runs<\/span> <span class=\"hljs-title\">only<\/span> <span class=\"hljs-title\">while<\/span> <span class=\"hljs-title\">tracing<\/span>\n    <span class=\"hljs-title\">tf<\/span>.<span class=\"hljs-title\">print<\/span><span class=\"hljs-params\">(<span class=\"hljs-string\">'Running, y ='<\/span>, m * x + c)<\/span>                 # <span class=\"hljs-title\">runs<\/span> <span class=\"hljs-title\">on<\/span> <span class=\"hljs-title\">every<\/span> <span class=\"hljs-title\">call<\/span>\n    <span class=\"hljs-title\">return<\/span> <span class=\"hljs-title\">m<\/span> * <span class=\"hljs-title\">x<\/span> + <span class=\"hljs-title\">c<\/span>\n\n<span class=\"hljs-title\">linear<\/span><span class=\"hljs-params\">(m, x, c)<\/span>\n<span class=\"hljs-title\">linear<\/span><span class=\"hljs-params\">(m, x, c)<\/span>   # <span class=\"hljs-title\">no<\/span> <span class=\"hljs-title\">second<\/span> '<span class=\"hljs-title\">Tracing<\/span>' <span class=\"hljs-title\">line<\/span>: <span class=\"hljs-title\">the<\/span> <span class=\"hljs-title\">graph<\/span> <span class=\"hljs-title\">is<\/span> <span class=\"hljs-title\">reused<\/span><\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-7\"><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<figure class=\"wp-block-table\"><table><thead><tr><th>Aspect<\/th><th>Eager (default)<\/th><th>tf.function<\/th><\/tr><\/thead><tbody><tr><td>When ops run<\/td><td>Immediately, one by one<\/td><td>Traced once, then the graph runs<\/td><\/tr><tr><td>Debugging<\/td><td>print, pdb, .numpy() all work<\/td><td>Use tf.print; .numpy() is unavailable<\/td><\/tr><tr><td>Python if\/for on tensors<\/td><td>Plain Python<\/td><td>Converted by AutoGraph to tf.cond \/ tf.while_loop<\/td><\/tr><tr><td>Performance<\/td><td>Python overhead per op<\/td><td>Usually faster for many small ops<\/td><\/tr><tr><td>Export to SavedModel<\/td><td>Not directly<\/td><td>Yes<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> To step through a <code>tf.function<\/code> while debugging, call <code>tf.config.run_functions_eagerly(True)<\/code>. Set it back to <code>False<\/code> afterwards, or the performance gain disappears.<\/p>\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<\/th><th>Cause<\/th><th>Fix<\/th><\/tr><\/thead><tbody><tr><td>InvalidArgumentError: expected to be a int32 tensor but is a float tensor<\/td><td>Mixing dtypes, for example int32 <code>a<\/code> with a float32 tensor<\/td><td>Convert first: <code>tf.cast(a, tf.float32)<\/code><\/td><\/tr><tr><td>TypeError: Cannot convert 1.5 to EagerTensor of dtype int32<\/td><td>Python float used with an int32 tensor, for example <code>a * 1.5<\/code><\/td><td>Create the tensor with floats or cast it<\/td><\/tr><tr><td>InvalidArgumentError from tf.matmul about rank or shape<\/td><td>Inputs are 1-D or the inner dimensions don&#039;t match<\/td><td>Reshape to 2-D and check that <code>a.shape[-1] == b.shape[-2]<\/code><\/td><\/tr><tr><td>AttributeError: &#039;Tensor&#039; object has no attribute &#039;numpy&#039;<\/td><td>Called <code>.numpy()<\/code> inside <code>tf.function<\/code> or on a graph tensor<\/td><td>Use <code>tf.print<\/code>, or return the tensor and call <code>.numpy()<\/code> outside<\/td><\/tr><tr><td><code>tf.executing_eagerly()<\/code> returns False at top level<\/td><td>Legacy code called <code>disable_eager_execution()<\/code> or uses TF1 sessions<\/td><td>Remove that call and migrate the session code to TF2 style<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Frequently asked questions<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Is eager execution enabled by default in TensorFlow 2?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Yes. TensorFlow 2 runs eagerly by default, so <code>tf.executing_eagerly()<\/code> returns <code>True<\/code> at the top level. It returns <code>False<\/code> only inside a <code>tf.function<\/code>, or if legacy code has disabled eager mode.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">How do I get a NumPy array from an eager tensor?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Call <code>.numpy()<\/code> on the tensor or variable, for example <code>y.numpy()<\/code>. This works only in eager mode, not inside a function decorated with <code>tf.function<\/code>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">What is the difference between a * b and tf.matmul(a, b)?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><code>a * b<\/code> multiplies matching elements and is the same as <code>tf.multiply<\/code>. <code>tf.matmul(a, b)<\/code>, or <code>a @ b<\/code>, computes a matrix product, which needs the inner dimensions to match.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Should I disable eager execution for better performance?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">No. Keep eager mode on and wrap the heavy parts in <code>@tf.function<\/code>. You get graph performance there and can still debug the rest of the code easily.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Why does tf.Variable([1.0], tf.float32) not set the dtype?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The second positional argument of <code>tf.Variable<\/code> is <code>trainable<\/code>, not <code>dtype<\/code>. Pass the type by keyword, as in <code>tf.Variable([1.0], dtype=tf.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\/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>In eager execution, TensorFlow runs each operation as soon as Python calls it and gives you a concrete value back, with no graph to build first. It&#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":[7380],"class_list":["post-47525","post","type-post","status-publish","format-standard","hentry","category-machine-learning","tag-tensorflow"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/47525","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=47525"}],"version-history":[{"count":2,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/47525\/revisions"}],"predecessor-version":[{"id":80201,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/47525\/revisions\/80201"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=47525"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=47525"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=47525"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}