![]() ![]() Tf._tensors() or tf._tensor_slices().Īlternatively, if your input data is stored in a file in the recommended To construct a Dataset from data in memory, you can use To create an input pipeline, you must start with a data source. There are two distinct ways to create a dataset:Ī data source constructs a Dataset from data stored in memory or inĪ data transformation constructs a dataset from one or more Sequence of elements, in which each element consists of one or more components.įor example, in an image pipeline, an element might be a single trainingĮxample, with a pair of tensor components representing the image and its label. The tf.data API introduces a tf.data.Dataset abstraction that represents a Handle large amounts of data, read from different data formats, and perform Pipeline for a text model might involve extracting symbols from raw text data,Ĭonverting them to embedding identifiers with a lookup table, and batching Image, and merge randomly selected images into a batch for training. For example, the pipeline for an image model might aggregateĭata from files in a distributed file system, apply random perturbations to each In any case, if I find a better solution I'll let you know.The tf.data API enables you to build complex input pipelines from simple, However, it didn't solve my slow performance issue. Thanks a lot! I managed to do it the same way you did and it worked. If you find another solution for the problem, would you please share it to me? Thank you so much. Therefore, I have to fix the xml file manually. Therefore, I manually edited the xml file as following:Īctually, I can't find the python file that custom layers and add the permute operation it in model_optimizer folder. I will post here when I find out more info.Īs the Shubha's advise in the previous comment, we need to add 2 reshape layer before and after the Permute layer. I will send the IR xml file to experts within the development team. Can you attach the xml file here which has the TensorIterator error ? I will file a bug for you. Now I need to file another about the CPU documentation being inaccurate. So first, I have already filed a bug about the original problem for you. At least the Myriad document tells the truth about the "TensorIterator" primitive not being supported. When you get that error Unsupported primitive of type: it means that the operation does not exist in the model optimizer (and likely it doesn't exist at the Inference Engine too). I'm terribly sorry that you're having such problems even on CPU. It's entirely a Model Optimizer-to-Inference Engine function. You are right - you will not find anything related to this in Tensorflow. is a function which Model Optimizer uses to define rules for layout conversation to make Inference Engine happy. Is it related to bug of Inferences Engine?Ĭould you please tell me what did you do exactly to solve the Permute error? I am still trying to solve this so I would really appreciate your feedback.ĭear quyet, PermuteAttrs.create_permute_attrs(node, attrs=). ![]() But, i got the error Unsupported primitive of type: TensorIterator name: bidirectional_1/while/LoopCond/TensorIteratorCondition_/TensorIterator. In addition, in the document said that the TensorIterator was supported by Inferences Engine in CPU. Can I do something to figure the error or wait the new release of Openvino toolkit?. I guess that the TensorIterator layer was unsupported by Inferences Engine in Neural Compute Stick as the document. Cannot convert layer "bidirectional_1/while/LoopCond/TensorIteratorCondition_/TensorIterator" due to unsupported layer type "TensorIterator" I manually edited the xml file and figure out the problems with Permute operation in Neural compute stick2. Thank you so much for your close support. I searched about PermuteAttrs.create_permute_attrs(node, attrs=) in google but i can not find any documents about it. ![]() In my tensorflow graph, therer is not any Permute operation after the Squeeze operation. And I do not understand where you can add the Permute operation after the Squeeze operation. But i do not find the command add Permute layer in the python file except the command PermuteAttrs.create_permute_attrs(node, attrs=). Therefore, I try to edit by rewrite the squeeze operation (/deployment_tools/model_optimizer/mo/front/common/partial_infer/squeeze.py). However, If i manually edit the IR file, it will affect to the id of layer. As your advise, i will add reshape layer before and after Permute layer. I have a question about the command PermuteAttrs.create_permute_attrs(node, attrs=).
0 Comments
Leave a Reply. |