Any alternative operators equivalent to Iterators available for TFLITE?I am trying to do a quantized mobilenet model to tensorflow lite model, but run into an errortensorflow tools: graph_transform v/s tocoConvert (Fused)BatchNorm to convolution / add for running MobileNet on TensorflowLiteHow to train mobilenet-v1 quantized model to use on TF Litetensorflow lite conversion for LSTM ModelError converting .Pb filte to tflite using toco(tensorflow)add an op in tensorflow, but type is errorWhy do I convert.h5 files to.tflite files sometimes, but not when I change the dimensions of trainingTensorflow TF-Lite toco converter, oneshot iterator op missingTensorflow Lite toco --mean_values --std_values?

How do German speakers decide what should be on the left side of the verb?

If every star in the universe except the Sun were destroyed, would we die?

Where on Earth is it easiest to survive in the wilderness?

Are fast interviews red flags?

How to best explain that you are taking pictures in a space for practice reasons?

What quests do you need to stop at before you make an enemy of a faction for each faction?

I won a car in a poker game. How is that taxed in Canada?

Word for something that used to be popular but not anymore

Is it right to use the ideas of non-winning designers in a design contest?

At what point does a land become controlled?

antimatter annihilation in stars

Passport - tiny rip on the edge of my passport page

When does order matter in probability?

Did Superman ever attend Sunday School in Smallville?

How strong is aircraft-grade spruce?

How do draw effects during the discard phase work?

Male viewpoint in an erotic novel

Owner keeps cutting corners and poaching workers for his other company

Does the word voltage exist in academic engineering?

Draw the ☣ (Biohazard Symbol)

How do I play this harmonic? (Guitar)

How to interpret or parse this confusing 'NOT' and 'AND' legal clause

Golfball Dimples on spaceships (and planes)?

Infinitely many primes



Any alternative operators equivalent to Iterators available for TFLITE?


I am trying to do a quantized mobilenet model to tensorflow lite model, but run into an errortensorflow tools: graph_transform v/s tocoConvert (Fused)BatchNorm to convolution / add for running MobileNet on TensorflowLiteHow to train mobilenet-v1 quantized model to use on TF Litetensorflow lite conversion for LSTM ModelError converting .Pb filte to tflite using toco(tensorflow)add an op in tensorflow, but type is errorWhy do I convert.h5 files to.tflite files sometimes, but not when I change the dimensions of trainingTensorflow TF-Lite toco converter, oneshot iterator op missingTensorflow Lite toco --mean_values --std_values?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I already requested few operators to be supported for TFLITE. But was wondering is there an alternative to iterate the dataset without using iterators?



Goal is to iterate all training data by batches using MNIST training dataset (55K images)



Here's a snippet:



train_data = tf.data.Dataset.from_tensor_slices(train)
train_data = train_data.shuffle(10000)
train_data = train_data.batch(batch_size)

iterator = tf.data.Iterator.from_structure(train_data.output_types,
train_data.output_shapes)
img, label = iterator.get_next()
train_init = iterator.make_initializer(train_data)


Errors in TFLITE conversion:



tensorflow.lite.python.convert.ConverterError: TOCO failed. See console for info.
2019-03-27 17:40:24.648521: I tensorflow/lite/toco/import_tensorflow.cc:1324] Converting unsupported operation: IteratorV2
2019-03-27 17:40:24.656267: I tensorflow/lite/toco/import_tensorflow.cc:193] Unsupported data type in placeholder op: 20
2019-03-27 17:40:24.656283: I tensorflow/lite/toco/import_tensorflow.cc:1324] Converting unsupported operation: IteratorGetNext
2019-03-27 17:40:24.656301: I tensorflow/lite/toco/import_tensorflow.cc:193] Unsupported data type in placeholder op: 2
2019-03-27 17:40:24.656376: I tensorflow/lite/toco/import_tensorflow.cc:193] Unsupported data type in placeholder op: 2
2019-03-27 17:40:24.656460: I tensorflow/lite/toco/import_tensorflow.cc:1324] Converting unsupported operation: SoftmaxCrossEntropyWithLogits
2019-03-27 17:40:24.656709: I tensorflow/lite/toco/graph_transformations/graph_transformations.cc:39] Before Removing unused ops: 21 operators, 35 arrays (0 quantized)
2019-03-27 17:40:24.656884: I tensorflow/lite/toco/graph_transformations/graph_transformations.cc:39] Before general graph transformations: 21 operators, 35 arrays (0 quantized)
2019-03-27 17:40:24.657083: I tensorflow/lite/toco/graph_transformations/graph_transformations.cc:39] After general graph transformations pass 1: 13 operators, 24 arrays (0 quantized)
2019-03-27 17:40:24.657094: F tensorflow/lite/toco/tooling_util.cc:897] Check failed: GetOpWithInput(model, input_array.name()) Specified input array "weights" is not consumed by any op in this graph. Is it a typo? To silence this message, pass this flag: allow_nonexistent_arrays









share|improve this question






























    0















    I already requested few operators to be supported for TFLITE. But was wondering is there an alternative to iterate the dataset without using iterators?



    Goal is to iterate all training data by batches using MNIST training dataset (55K images)



    Here's a snippet:



    train_data = tf.data.Dataset.from_tensor_slices(train)
    train_data = train_data.shuffle(10000)
    train_data = train_data.batch(batch_size)

    iterator = tf.data.Iterator.from_structure(train_data.output_types,
    train_data.output_shapes)
    img, label = iterator.get_next()
    train_init = iterator.make_initializer(train_data)


    Errors in TFLITE conversion:



    tensorflow.lite.python.convert.ConverterError: TOCO failed. See console for info.
    2019-03-27 17:40:24.648521: I tensorflow/lite/toco/import_tensorflow.cc:1324] Converting unsupported operation: IteratorV2
    2019-03-27 17:40:24.656267: I tensorflow/lite/toco/import_tensorflow.cc:193] Unsupported data type in placeholder op: 20
    2019-03-27 17:40:24.656283: I tensorflow/lite/toco/import_tensorflow.cc:1324] Converting unsupported operation: IteratorGetNext
    2019-03-27 17:40:24.656301: I tensorflow/lite/toco/import_tensorflow.cc:193] Unsupported data type in placeholder op: 2
    2019-03-27 17:40:24.656376: I tensorflow/lite/toco/import_tensorflow.cc:193] Unsupported data type in placeholder op: 2
    2019-03-27 17:40:24.656460: I tensorflow/lite/toco/import_tensorflow.cc:1324] Converting unsupported operation: SoftmaxCrossEntropyWithLogits
    2019-03-27 17:40:24.656709: I tensorflow/lite/toco/graph_transformations/graph_transformations.cc:39] Before Removing unused ops: 21 operators, 35 arrays (0 quantized)
    2019-03-27 17:40:24.656884: I tensorflow/lite/toco/graph_transformations/graph_transformations.cc:39] Before general graph transformations: 21 operators, 35 arrays (0 quantized)
    2019-03-27 17:40:24.657083: I tensorflow/lite/toco/graph_transformations/graph_transformations.cc:39] After general graph transformations pass 1: 13 operators, 24 arrays (0 quantized)
    2019-03-27 17:40:24.657094: F tensorflow/lite/toco/tooling_util.cc:897] Check failed: GetOpWithInput(model, input_array.name()) Specified input array "weights" is not consumed by any op in this graph. Is it a typo? To silence this message, pass this flag: allow_nonexistent_arrays









    share|improve this question


























      0












      0








      0








      I already requested few operators to be supported for TFLITE. But was wondering is there an alternative to iterate the dataset without using iterators?



      Goal is to iterate all training data by batches using MNIST training dataset (55K images)



      Here's a snippet:



      train_data = tf.data.Dataset.from_tensor_slices(train)
      train_data = train_data.shuffle(10000)
      train_data = train_data.batch(batch_size)

      iterator = tf.data.Iterator.from_structure(train_data.output_types,
      train_data.output_shapes)
      img, label = iterator.get_next()
      train_init = iterator.make_initializer(train_data)


      Errors in TFLITE conversion:



      tensorflow.lite.python.convert.ConverterError: TOCO failed. See console for info.
      2019-03-27 17:40:24.648521: I tensorflow/lite/toco/import_tensorflow.cc:1324] Converting unsupported operation: IteratorV2
      2019-03-27 17:40:24.656267: I tensorflow/lite/toco/import_tensorflow.cc:193] Unsupported data type in placeholder op: 20
      2019-03-27 17:40:24.656283: I tensorflow/lite/toco/import_tensorflow.cc:1324] Converting unsupported operation: IteratorGetNext
      2019-03-27 17:40:24.656301: I tensorflow/lite/toco/import_tensorflow.cc:193] Unsupported data type in placeholder op: 2
      2019-03-27 17:40:24.656376: I tensorflow/lite/toco/import_tensorflow.cc:193] Unsupported data type in placeholder op: 2
      2019-03-27 17:40:24.656460: I tensorflow/lite/toco/import_tensorflow.cc:1324] Converting unsupported operation: SoftmaxCrossEntropyWithLogits
      2019-03-27 17:40:24.656709: I tensorflow/lite/toco/graph_transformations/graph_transformations.cc:39] Before Removing unused ops: 21 operators, 35 arrays (0 quantized)
      2019-03-27 17:40:24.656884: I tensorflow/lite/toco/graph_transformations/graph_transformations.cc:39] Before general graph transformations: 21 operators, 35 arrays (0 quantized)
      2019-03-27 17:40:24.657083: I tensorflow/lite/toco/graph_transformations/graph_transformations.cc:39] After general graph transformations pass 1: 13 operators, 24 arrays (0 quantized)
      2019-03-27 17:40:24.657094: F tensorflow/lite/toco/tooling_util.cc:897] Check failed: GetOpWithInput(model, input_array.name()) Specified input array "weights" is not consumed by any op in this graph. Is it a typo? To silence this message, pass this flag: allow_nonexistent_arrays









      share|improve this question














      I already requested few operators to be supported for TFLITE. But was wondering is there an alternative to iterate the dataset without using iterators?



      Goal is to iterate all training data by batches using MNIST training dataset (55K images)



      Here's a snippet:



      train_data = tf.data.Dataset.from_tensor_slices(train)
      train_data = train_data.shuffle(10000)
      train_data = train_data.batch(batch_size)

      iterator = tf.data.Iterator.from_structure(train_data.output_types,
      train_data.output_shapes)
      img, label = iterator.get_next()
      train_init = iterator.make_initializer(train_data)


      Errors in TFLITE conversion:



      tensorflow.lite.python.convert.ConverterError: TOCO failed. See console for info.
      2019-03-27 17:40:24.648521: I tensorflow/lite/toco/import_tensorflow.cc:1324] Converting unsupported operation: IteratorV2
      2019-03-27 17:40:24.656267: I tensorflow/lite/toco/import_tensorflow.cc:193] Unsupported data type in placeholder op: 20
      2019-03-27 17:40:24.656283: I tensorflow/lite/toco/import_tensorflow.cc:1324] Converting unsupported operation: IteratorGetNext
      2019-03-27 17:40:24.656301: I tensorflow/lite/toco/import_tensorflow.cc:193] Unsupported data type in placeholder op: 2
      2019-03-27 17:40:24.656376: I tensorflow/lite/toco/import_tensorflow.cc:193] Unsupported data type in placeholder op: 2
      2019-03-27 17:40:24.656460: I tensorflow/lite/toco/import_tensorflow.cc:1324] Converting unsupported operation: SoftmaxCrossEntropyWithLogits
      2019-03-27 17:40:24.656709: I tensorflow/lite/toco/graph_transformations/graph_transformations.cc:39] Before Removing unused ops: 21 operators, 35 arrays (0 quantized)
      2019-03-27 17:40:24.656884: I tensorflow/lite/toco/graph_transformations/graph_transformations.cc:39] Before general graph transformations: 21 operators, 35 arrays (0 quantized)
      2019-03-27 17:40:24.657083: I tensorflow/lite/toco/graph_transformations/graph_transformations.cc:39] After general graph transformations pass 1: 13 operators, 24 arrays (0 quantized)
      2019-03-27 17:40:24.657094: F tensorflow/lite/toco/tooling_util.cc:897] Check failed: GetOpWithInput(model, input_array.name()) Specified input array "weights" is not consumed by any op in this graph. Is it a typo? To silence this message, pass this flag: allow_nonexistent_arrays






      tensorflow tensorflow-lite






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 28 at 6:05









      Joseph D.Joseph D.

      5,1692 gold badges14 silver badges40 bronze badges




      5,1692 gold badges14 silver badges40 bronze badges

























          0






          active

          oldest

          votes










          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );














          draft saved

          draft discarded
















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55391089%2fany-alternative-operators-equivalent-to-iterators-available-for-tflite%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes




          Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.







          Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.




















          draft saved

          draft discarded















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55391089%2fany-alternative-operators-equivalent-to-iterators-available-for-tflite%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Obelisk of Theodosius Contents History Description Notes Bibliography Further reading External links Navigation menuAge of spirituality : late antique and early Christian art, third to seventh centuryOver 60 picturesObelisks of the World41°00′21.24″N 28°58′31.43″E / 41.0059000°N 28.9753972°E / 41.0059000; 28.97539727724550-7235741376235741376

          밀양 대씨 역사 각주 함께 보기 둘러보기 메뉴밀양 대씨

          1973년 목차 사건 문화 탄생 사망 노벨상 달력 둘러보기 메뉴