CINXE.COM

Saving models in tf 2.16.1 - General Discussion - Build with Google AI

<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Saving models in tf 2.16.1 - General Discussion - Build with Google AI</title> <meta name="description" content="There is an issue when my model is being saved using tf.saved_model.save in tf 2.16.1. The error is that, there is a type missmatch for a certain feature (my_text_feature) is expecting string and getting float). Input ‘&amp;hellip;"> <meta name="generator" content="Discourse 3.4.0.beta3-dev - https://github.com/discourse/discourse version c7e471d35a0d394899eda5af26de64511e199cc6"> <link rel="icon" type="image/png" href="https://canada1.discourse-cdn.com/googleaitrial/optimized/2X/8/8bfe64fc593eb7baba8df149ebba4457c16ca1f9_2_32x32.png"> <link rel="apple-touch-icon" type="image/png" href="https://canada1.discourse-cdn.com/googleaitrial/optimized/2X/8/8bfe64fc593eb7baba8df149ebba4457c16ca1f9_2_180x180.png"> <meta name="theme-color" media="all" content="#1f1f1f"> <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, user-scalable=yes, viewport-fit=cover"> <link rel="canonical" href="https://discuss.ai.google.dev/t/saving-models-in-tf-2-16-1/44534" /> <link rel="search" type="application/opensearchdescription+xml" href="https://discuss.ai.google.dev/opensearch.xml" title="Build with Google AI Search"> <link href="https://yyz1.discourse-cdn.com/googleaitrial/stylesheets/color_definitions_google-ai-for-developers_8_2_802cdd66ba848b97b3bff3a66be91d08b85c621b.css?__ws=discuss.ai.google.dev" media="all" rel="stylesheet" class="light-scheme"/> <link href="https://yyz1.discourse-cdn.com/googleaitrial/stylesheets/desktop_bd8b6fa30c4459fc3d619049842469000208e51c.css?__ws=discuss.ai.google.dev" media="all" rel="stylesheet" data-target="desktop" /> <link href="https://yyz1.discourse-cdn.com/googleaitrial/stylesheets/automation_bd8b6fa30c4459fc3d619049842469000208e51c.css?__ws=discuss.ai.google.dev" media="all" rel="stylesheet" data-target="automation" /> <link href="https://yyz1.discourse-cdn.com/googleaitrial/stylesheets/checklist_bd8b6fa30c4459fc3d619049842469000208e51c.css?__ws=discuss.ai.google.dev" media="all" rel="stylesheet" data-target="checklist" /> <link href="https://yyz1.discourse-cdn.com/googleaitrial/stylesheets/discourse-ai_bd8b6fa30c4459fc3d619049842469000208e51c.css?__ws=discuss.ai.google.dev" media="all" rel="stylesheet" data-target="discourse-ai" /> <link href="https://yyz1.discourse-cdn.com/googleaitrial/stylesheets/discourse-akismet_bd8b6fa30c4459fc3d619049842469000208e51c.css?__ws=discuss.ai.google.dev" media="all" rel="stylesheet" data-target="discourse-akismet" /> <link href="https://yyz1.discourse-cdn.com/googleaitrial/stylesheets/discourse-cakeday_bd8b6fa30c4459fc3d619049842469000208e51c.css?__ws=discuss.ai.google.dev" media="all" rel="stylesheet" data-target="discourse-cakeday" /> <link href="https://yyz1.discourse-cdn.com/googleaitrial/stylesheets/discourse-data-explorer_bd8b6fa30c4459fc3d619049842469000208e51c.css?__ws=discuss.ai.google.dev" media="all" rel="stylesheet" data-target="discourse-data-explorer" /> <link href="https://yyz1.discourse-cdn.com/googleaitrial/stylesheets/discourse-details_bd8b6fa30c4459fc3d619049842469000208e51c.css?__ws=discuss.ai.google.dev" media="all" rel="stylesheet" data-target="discourse-details" /> <link href="https://yyz1.discourse-cdn.com/googleaitrial/stylesheets/discourse-lazy-videos_bd8b6fa30c4459fc3d619049842469000208e51c.css?__ws=discuss.ai.google.dev" media="all" rel="stylesheet" data-target="discourse-lazy-videos" /> <link href="https://yyz1.discourse-cdn.com/googleaitrial/stylesheets/discourse-local-dates_bd8b6fa30c4459fc3d619049842469000208e51c.css?__ws=discuss.ai.google.dev" media="all" rel="stylesheet" data-target="discourse-local-dates" /> <link href="https://yyz1.discourse-cdn.com/googleaitrial/stylesheets/discourse-narrative-bot_bd8b6fa30c4459fc3d619049842469000208e51c.css?__ws=discuss.ai.google.dev" media="all" rel="stylesheet" data-target="discourse-narrative-bot" /> <link href="https://yyz1.discourse-cdn.com/googleaitrial/stylesheets/discourse-policy_bd8b6fa30c4459fc3d619049842469000208e51c.css?__ws=discuss.ai.google.dev" media="all" rel="stylesheet" data-target="discourse-policy" /> <link href="https://yyz1.discourse-cdn.com/googleaitrial/stylesheets/discourse-presence_bd8b6fa30c4459fc3d619049842469000208e51c.css?__ws=discuss.ai.google.dev" media="all" rel="stylesheet" data-target="discourse-presence" /> <link href="https://yyz1.discourse-cdn.com/googleaitrial/stylesheets/discourse-reactions_bd8b6fa30c4459fc3d619049842469000208e51c.css?__ws=discuss.ai.google.dev" media="all" rel="stylesheet" data-target="discourse-reactions" /> <link href="https://yyz1.discourse-cdn.com/googleaitrial/stylesheets/discourse-solved_bd8b6fa30c4459fc3d619049842469000208e51c.css?__ws=discuss.ai.google.dev" media="all" rel="stylesheet" data-target="discourse-solved" /> <link href="https://yyz1.discourse-cdn.com/googleaitrial/stylesheets/discourse-templates_bd8b6fa30c4459fc3d619049842469000208e51c.css?__ws=discuss.ai.google.dev" media="all" rel="stylesheet" data-target="discourse-templates" /> <link href="https://yyz1.discourse-cdn.com/googleaitrial/stylesheets/discourse-topic-voting_bd8b6fa30c4459fc3d619049842469000208e51c.css?__ws=discuss.ai.google.dev" media="all" rel="stylesheet" data-target="discourse-topic-voting" /> <link href="https://yyz1.discourse-cdn.com/googleaitrial/stylesheets/footnote_bd8b6fa30c4459fc3d619049842469000208e51c.css?__ws=discuss.ai.google.dev" media="all" rel="stylesheet" data-target="footnote" /> <link href="https://yyz1.discourse-cdn.com/googleaitrial/stylesheets/hosted-site_bd8b6fa30c4459fc3d619049842469000208e51c.css?__ws=discuss.ai.google.dev" media="all" rel="stylesheet" data-target="hosted-site" /> <link href="https://yyz1.discourse-cdn.com/googleaitrial/stylesheets/poll_bd8b6fa30c4459fc3d619049842469000208e51c.css?__ws=discuss.ai.google.dev" media="all" rel="stylesheet" data-target="poll" /> <link href="https://yyz1.discourse-cdn.com/googleaitrial/stylesheets/spoiler-alert_bd8b6fa30c4459fc3d619049842469000208e51c.css?__ws=discuss.ai.google.dev" media="all" rel="stylesheet" data-target="spoiler-alert" /> <link href="https://yyz1.discourse-cdn.com/googleaitrial/stylesheets/discourse-ai_desktop_bd8b6fa30c4459fc3d619049842469000208e51c.css?__ws=discuss.ai.google.dev" media="all" rel="stylesheet" data-target="discourse-ai_desktop" /> <link href="https://yyz1.discourse-cdn.com/googleaitrial/stylesheets/discourse-reactions_desktop_bd8b6fa30c4459fc3d619049842469000208e51c.css?__ws=discuss.ai.google.dev" media="all" rel="stylesheet" data-target="discourse-reactions_desktop" /> <link href="https://yyz1.discourse-cdn.com/googleaitrial/stylesheets/discourse-topic-voting_desktop_bd8b6fa30c4459fc3d619049842469000208e51c.css?__ws=discuss.ai.google.dev" media="all" rel="stylesheet" data-target="discourse-topic-voting_desktop" /> <link href="https://yyz1.discourse-cdn.com/googleaitrial/stylesheets/poll_desktop_bd8b6fa30c4459fc3d619049842469000208e51c.css?__ws=discuss.ai.google.dev" media="all" rel="stylesheet" data-target="poll_desktop" /> <link href="https://yyz1.discourse-cdn.com/googleaitrial/stylesheets/desktop_theme_4_e9f02b29164418bb52c93b1829e4fe0e2396bbbb.css?__ws=discuss.ai.google.dev" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="4" data-theme-name="discourse header search"/> <link href="https://yyz1.discourse-cdn.com/googleaitrial/stylesheets/desktop_theme_3_7d8385e66a3c1aa20c4fa086672bc723ee9772dc.css?__ws=discuss.ai.google.dev" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="3" data-theme-name="discourse-material-icons"/> <link href="https://yyz1.discourse-cdn.com/googleaitrial/stylesheets/desktop_theme_9_a8686d4e4a8a6f98450f62a990281e3d43ae5c2c.css?__ws=discuss.ai.google.dev" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="9" data-theme-name="global notice custom css"/> <link href="https://yyz1.discourse-cdn.com/googleaitrial/stylesheets/desktop_theme_8_00ba330a6aa879f8d23099f1cf76b3837f85b01a.css?__ws=discuss.ai.google.dev" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="8" data-theme-name="temp nav fixes"/> <link href="https://yyz1.discourse-cdn.com/googleaitrial/stylesheets/desktop_theme_2_c81684905860bd0bf1fcb022cd55f4c33959d2fb.css?__ws=discuss.ai.google.dev" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="2" data-theme-name="google ai"/> <link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..400,0..1,0&amp;family=Roboto+Mono:ital,wght@0,100..700;1,100..700&amp;family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&amp;display=swap" rel="stylesheet"> <link rel="alternate nofollow" type="application/rss+xml" title="RSS feed of &#39;Saving models in tf 2.16.1&#39;" href="https://discuss.ai.google.dev/t/saving-models-in-tf-2-16-1/44534.rss" /> <meta property="og:site_name" content="Build with Google AI" /> <meta property="og:type" content="website" /> <meta name="twitter:card" content="summary" /> <meta name="twitter:image" content="https://canada1.discourse-cdn.com/googleaitrial/original/2X/8/8bfe64fc593eb7baba8df149ebba4457c16ca1f9.png" /> <meta property="og:image" content="https://canada1.discourse-cdn.com/googleaitrial/original/2X/8/8bfe64fc593eb7baba8df149ebba4457c16ca1f9.png" /> <meta property="og:url" content="https://discuss.ai.google.dev/t/saving-models-in-tf-2-16-1/44534" /> <meta name="twitter:url" content="https://discuss.ai.google.dev/t/saving-models-in-tf-2-16-1/44534" /> <meta property="og:title" content="Saving models in tf 2.16.1" /> <meta name="twitter:title" content="Saving models in tf 2.16.1" /> <meta property="og:description" content="There is an issue when my model is being saved using tf.saved_model.save in tf 2.16.1. The error is that, there is a type missmatch for a certain feature (my_text_feature) is expecting string and getting float). Input ‘input_bytes’ of ‘DecodePaddedRaw’ Op has type float32 that does not match expected type of string. Arguments received by BytesSequenceToEncodingBiLSTM.call(): • inputs=tf.Tensor(shape=(32, 1), dtype=float32) • training=None I made sure my data types are correct, plus the mo..." /> <meta name="twitter:description" content="There is an issue when my model is being saved using tf.saved_model.save in tf 2.16.1. The error is that, there is a type missmatch for a certain feature (my_text_feature) is expecting string and getting float). Input ‘input_bytes’ of ‘DecodePaddedRaw’ Op has type float32 that does not match expected type of string. Arguments received by BytesSequenceToEncodingBiLSTM.call(): • inputs=tf.Tensor(shape=(32, 1), dtype=float32) • training=None I made sure my data types are correct, plus the mo..." /> <meta property="og:article:section" content="TensorFlow" /> <meta property="og:article:section:color" content="f66f00" /> <meta property="og:article:section" content="General Discussion" /> <meta property="og:article:section:color" content="f2a346" /> <meta property="og:article:tag" content="models" /> <meta property="og:article:tag" content="tensorflow" /> <meta name="twitter:label1" value="Reading time" /> <meta name="twitter:data1" value="1 mins 🕑" /> <meta name="twitter:label2" value="Likes" /> <meta name="twitter:data2" value="1 ❤" /> <meta property="article:published_time" content="2024-10-18T16:56:24+00:00" /> <meta property="og:ignore_canonical" content="true" /> </head> <body class="crawler browser-update"> <header> <a href="/"> Build with Google AI </a> </header> <div id="main-outlet" class="wrap" role="main"> <div id="topic-title"> <h1> <a href="/t/saving-models-in-tf-2-16-1/44534">Saving models in tf 2.16.1</a> </h1> <div class="topic-category" itemscope itemtype="http://schema.org/BreadcrumbList"> <span itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"> <a href="/c/tensorflow/general-discussion-6/37" class="badge-wrapper bullet" itemprop="item"> <span class='badge-category-bg' style='background-color: #f66f00'></span> <span class='badge-category clear-badge'> <span class='category-name' itemprop='name'>TensorFlow</span> </span> </a> <meta itemprop="position" content="1" /> </span> <span itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"> <a href="/c/tensorflow/general-discussion-6/37" class="badge-wrapper bullet" itemprop="item"> <span class='badge-category-bg' style='background-color: #f2a346'></span> <span class='badge-category clear-badge'> <span class='category-name' itemprop='name'>General Discussion</span> </span> </a> <meta itemprop="position" content="2" /> </span> </div> <div class="topic-category"> <div class='discourse-tags list-tags'> <a href='https://discuss.ai.google.dev/tag/models' class='discourse-tag' rel="tag">models</a>, <a href='https://discuss.ai.google.dev/tag/tensorflow' class='discourse-tag' rel="tag">tensorflow</a> </div> </div> </div> <div itemscope itemtype='http://schema.org/DiscussionForumPosting'> <meta itemprop='headline' content='Saving models in tf 2.16.1'> <link itemprop='url' href='https://discuss.ai.google.dev/t/saving-models-in-tf-2-16-1/44534'> <meta itemprop='datePublished' content='2024-10-18T16:56:24Z'> <meta itemprop='articleSection' content='General Discussion'> <meta itemprop='keywords' content='models, tensorflow'> <div itemprop='publisher' itemscope itemtype="http://schema.org/Organization"> <meta itemprop='name' content='Build with Google AI'> <div itemprop='logo' itemscope itemtype="http://schema.org/ImageObject"> <meta itemprop='url' content='https://canada1.discourse-cdn.com/googleaitrial/original/1X/9c9b743566b5ef0d0701ebba72bf83038f42ea0b.png'> </div> </div> <div id='post_1' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://discuss.ai.google.dev/u/M_Zahran'><span itemprop='name'>M_Zahran</span></a> </span> <link itemprop="mainEntityOfPage" href="https://discuss.ai.google.dev/t/saving-models-in-tf-2-16-1/44534"> <span class="crawler-post-infos"> <time datetime='2024-10-18T16:56:24Z' class='post-time'> October 18, 2024, 4:56pm </time> <meta itemprop='dateModified' content='2024-10-18T16:56:24Z'> <span itemprop='position'>1</span> </span> </div> <div class='post' itemprop='text'> <p>There is an issue when my model is being saved using tf.saved_model.save in tf 2.16.1. The error is that, there is a type missmatch for a certain feature (my_text_feature) is expecting string and getting float).</p> <p>Input ‘input_bytes’ of ‘DecodePaddedRaw’ Op has type float32 that does not match expected type of string.</p> <pre><code>Arguments received by BytesSequenceToEncodingBiLSTM.call(): • inputs=tf.Tensor(shape=(32, 1), dtype=float32) • training=None </code></pre> <p>I made sure my data types are correct, plus the model training and evaluation completed successfully. This error happens only when trying to save the model.</p> <p>I did some tracing for the error and I found the following. The call to tf.saved_model.save would invoke my model twice. The first call to it the feature value for my_text_feature is correct (string) which is then transformed to floats (after applying BiLSTM embedding), which is correct.<br> however the second call passes float to my_text_feature instead of string which crashed in the embedding phase.</p> <p>I did some tracing and found that this function _build_meta_graph_impl in tensorflow.python.saved_model.save.py gets called when tf.saved_model.save is called. this function _build_meta_graph_impl make the call twice.<br> <span class="hashtag-raw">#first</span> call<br> signatures, wrapped_functions, defaults = (signature_serialization.canonicalize_signatures(signatures))<br> <span class="hashtag-raw">#second</span> call<br> signature_serialization.validate_augmented_graph_view(augmented_graph_view)</p> <p>Can someone help why the second call is problematic and why this issue did not rise in older tf version (specifically 2.9)</p> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="1" /> <span class='post-likes'>1 Like</span> </div> </div> <div id='post_3' itemprop='comment' itemscope itemtype='http://schema.org/Comment' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://discuss.ai.google.dev/u/Kiran_Sai_Ramineni'><span itemprop='name'>Kiran_Sai_Ramineni</span></a> </span> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2024-10-21T06:36:38Z' class='post-time'> October 21, 2024, 6:36am </time> <meta itemprop='dateModified' content='2024-10-21T06:36:38Z'> <span itemprop='position'>3</span> </span> </div> <div class='post' itemprop='text'> <p>Hi <a class="mention" href="/u/m_zahran">@M_Zahran</a>, As tf2.16.1 by default comes with keras3 could you please try to save the model using model.save() with .keras extension, for example model.save(‘model.keras’) if you still face the error please provide the stand alone code to reproduce the issue and also let us know which keras version you are using. Thank You.</p> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="0" /> <span class='post-likes'></span> </div> </div> <div id='post_5' itemprop='comment' itemscope itemtype='http://schema.org/Comment' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://discuss.ai.google.dev/u/M_Zahran'><span itemprop='name'>M_Zahran</span></a> </span> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2024-11-15T17:43:36Z' class='post-time'> November 15, 2024, 5:43pm </time> <meta itemprop='dateModified' content='2024-11-15T17:43:36Z'> <span itemprop='position'>5</span> </span> </div> <div class='post' itemprop='text'> <p>Thanks for the response. I’m trying to save my model using custom signature. model.save() doesn’t allow custom signatures.</p> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="0" /> <span class='post-likes'></span> </div> </div> <div id='post_6' itemprop='comment' itemscope itemtype='http://schema.org/Comment' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://discuss.ai.google.dev/u/Kiran_Sai_Ramineni'><span itemprop='name'>Kiran_Sai_Ramineni</span></a> </span> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2024-11-16T08:11:46Z' class='post-time'> November 16, 2024, 8:11am </time> <meta itemprop='dateModified' content='2024-11-16T08:11:46Z'> <span itemprop='position'>6</span> </span> </div> <div class='post' itemprop='text'> <p>Hi <a class="mention" href="/u/m_zahran">@M_Zahran</a>, If possible please provide the stand alone code to reproduce the issue. Thank You.</p> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="0" /> <span class='post-likes'></span> </div> </div> <div id='post_8' itemprop='comment' itemscope itemtype='http://schema.org/Comment' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://discuss.ai.google.dev/u/Kiran_Sai_Ramineni'><span itemprop='name'>Kiran_Sai_Ramineni</span></a> </span> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2024-11-20T06:18:11Z' class='post-time'> November 20, 2024, 6:18am </time> <meta itemprop='dateModified' content='2024-11-20T06:18:11Z'> <span itemprop='position'>8</span> </span> </div> <div class='post' itemprop='text'> <p>Hi <a class="mention" href="/u/m_zahran">@M_Zahran</a>, Signatures only applicable to SavedModel format the legacy hdf5 does not support signatures. Thank You.</p> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="0" /> <span class='post-likes'></span> </div> </div> </div> <div id="related-topics" class="more-topics__list " role="complementary" aria-labelledby="related-topics-title"> <h3 id="related-topics-title" class="more-topics__list-title"> Related topics </h3> <div class="topic-list-container" itemscope itemtype='http://schema.org/ItemList'> <meta itemprop='itemListOrder' content='http://schema.org/ItemListOrderDescending'> <table class='topic-list'> <thead> <tr> <th>Topic</th> <th></th> <th class="replies">Replies</th> <th class="views">Views</th> <th>Activity</th> </tr> </thead> <tbody> <tr class="topic-list-item" id="topic-list-item-24640"> <td class="main-link" itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'> <meta itemprop='position' content='1'> <span class="link-top-line"> <a itemprop='url' href='https://discuss.ai.google.dev/t/byte-array-in-stringlokkup-fails-to-save-the-model/24640' class='title raw-link raw-topic-link'>Byte array in StringLokkup fails to save the model</a> </span> <div class="link-bottom-line"> <a href='/c/keras/22' class='badge-wrapper bullet'> <span class='badge-category-bg' style='background-color: #bf271b'></span> <span class='badge-category clear-badge'> <span class='category-name'>Keras</span> </span> </a> <div class="discourse-tags"> <a href='https://discuss.ai.google.dev/tag/api' class='discourse-tag'>api</a> ,&nbsp; <a href='https://discuss.ai.google.dev/tag/keras' class='discourse-tag'>keras</a> ,&nbsp; <a href='https://discuss.ai.google.dev/tag/help_request' class='discourse-tag'>help_request</a> </div> </div> </td> <td class="replies"> <span class='posts' title='posts'>1</span> </td> <td class="views"> <span class='views' title='views'>901</span> </td> <td> October 14, 2022 </td> </tr> <tr class="topic-list-item" id="topic-list-item-27023"> <td class="main-link" itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'> <meta itemprop='position' content='2'> <span class="link-top-line"> <a itemprop='url' href='https://discuss.ai.google.dev/t/error-the-shape-of-dict-input-tensor-provided-in-model-execute-dict-must-be-1-1-1-3/27023' class='title raw-link raw-topic-link'>Error: The shape of dict[&#39;input_tensor&#39;] provided in model.execute(dict) must be [1,-1,-1,3]</a> </span> <div class="link-bottom-line"> <a href='/c/tensorflow/general-discussion-6/37' class='badge-wrapper bullet'> <span class='badge-category-bg' style='background-color: #f2a346'></span> <span class='badge-category clear-badge'> <span class='category-name'>General Discussion</span> </span> </a> <div class="discourse-tags"> <a href='https://discuss.ai.google.dev/tag/models' class='discourse-tag'>models</a> ,&nbsp; <a href='https://discuss.ai.google.dev/tag/tfjs' class='discourse-tag'>tfjs</a> ,&nbsp; <a href='https://discuss.ai.google.dev/tag/help_request' class='discourse-tag'>help_request</a> </div> </div> </td> <td class="replies"> <span class='posts' title='posts'>29</span> </td> <td class="views"> <span class='views' title='views'>7158</span> </td> <td> February 1, 2023 </td> </tr> <tr class="topic-list-item" id="topic-list-item-28630"> <td class="main-link" itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'> <meta itemprop='position' content='3'> <span class="link-top-line"> <a itemprop='url' href='https://discuss.ai.google.dev/t/tf-summary-scalar-not-compatible-with-tf-saved-model/28630' class='title raw-link raw-topic-link'>Tf.summary.scalar not compatible with tf.saved_model</a> </span> <div class="link-bottom-line"> <a href='/c/tensorflow/general-discussion-6/37' class='badge-wrapper bullet'> <span class='badge-category-bg' style='background-color: #f2a346'></span> <span class='badge-category clear-badge'> <span class='category-name'>General Discussion</span> </span> </a> <div class="discourse-tags"> <a href='https://discuss.ai.google.dev/tag/help_request' class='discourse-tag'>help_request</a> ,&nbsp; <a href='https://discuss.ai.google.dev/tag/tfcore' class='discourse-tag'>tfcore</a> </div> </div> </td> <td class="replies"> <span class='posts' title='posts'>1</span> </td> <td class="views"> <span class='views' title='views'>795</span> </td> <td> September 25, 2024 </td> </tr> <tr class="topic-list-item" id="topic-list-item-27250"> <td class="main-link" itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'> <meta itemprop='position' content='4'> <span class="link-top-line"> <a itemprop='url' href='https://discuss.ai.google.dev/t/loading-saved-tensorflow-model/27250' class='title raw-link raw-topic-link'>Loading saved tensorflow model</a> </span> <div class="link-bottom-line"> <a href='/c/tensorflow/general-discussion-6/37' class='badge-wrapper bullet'> <span class='badge-category-bg' style='background-color: #f2a346'></span> <span class='badge-category clear-badge'> <span class='category-name'>General Discussion</span> </span> </a> <div class="discourse-tags"> <a href='https://discuss.ai.google.dev/tag/models' class='discourse-tag'>models</a> ,&nbsp; <a href='https://discuss.ai.google.dev/tag/keras' class='discourse-tag'>keras</a> ,&nbsp; <a href='https://discuss.ai.google.dev/tag/help_request' class='discourse-tag'>help_request</a> </div> </div> </td> <td class="replies"> <span class='posts' title='posts'>1</span> </td> <td class="views"> <span class='views' title='views'>1951</span> </td> <td> November 26, 2021 </td> </tr> <tr class="topic-list-item" id="topic-list-item-31726"> <td class="main-link" itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'> <meta itemprop='position' content='5'> <span class="link-top-line"> <a itemprop='url' href='https://discuss.ai.google.dev/t/using-efficientnetb0-and-save-model-will-result-unable-to-serialize-2-0896919-2-1128857-2-1081853-to-json-unrecognized-type-class-tensorflow-python-framework-ops-eagertensor/31726' class='title raw-link raw-topic-link'>Using EfficientNetB0 and save model will result `Unable to serialize [2.0896919 2.1128857 2.1081853] to JSON. Unrecognized type &lt;class &#39;tensorflow.python.framework.ops.EagerTensor&#39;&gt;.`</a> </span> <div class="link-bottom-line"> <a href='/c/tensorflow/general-discussion-6/37' class='badge-wrapper bullet'> <span class='badge-category-bg' style='background-color: #f2a346'></span> <span class='badge-category clear-badge'> <span class='category-name'>General Discussion</span> </span> </a> <div class="discourse-tags"> <a href='https://discuss.ai.google.dev/tag/models' class='discourse-tag'>models</a> ,&nbsp; <a href='https://discuss.ai.google.dev/tag/help_request' class='discourse-tag'>help_request</a> </div> </div> </td> <td class="replies"> <span class='posts' title='posts'>24</span> </td> <td class="views"> <span class='views' title='views'>18434</span> </td> <td> April 8, 2024 </td> </tr> </tbody> </table> </div> </div> </div> <footer class="container wrap"> <nav class='crawler-nav'> <ul> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='/' itemprop="url">Home </a> </span> </li> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='/categories' itemprop="url">Categories </a> </span> </li> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='/guidelines' itemprop="url">Guidelines </a> </span> </li> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='https://policies.google.com/terms' itemprop="url">Terms of Service </a> </span> </li> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='https://policies.google.com/privacy' itemprop="url">Privacy Policy </a> </span> </li> </ul> </nav> <p class='powered-by-link'>Powered by <a href="https://www.discourse.org">Discourse</a>, best viewed with JavaScript enabled</p> </footer> <div class="buorg"><div>Unfortunately, <a href="https://www.discourse.org/faq/#browser">your browser is unsupported</a>. Please <a href="https://browsehappy.com">switch to a supported browser</a> to view rich content, log in and reply.</div></div> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10