<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX ProcessorsのトピックRe: PRELU compilation error on iMX8MP</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/PRELU-compilation-error-on-iMX8MP/m-p/1848204#M222600</link>
    <description>&lt;P&gt;Hello.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does this happens on 6.6.3v BSP? since is the first one that support PRELU.&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Tue, 16 Apr 2024 14:26:42 GMT</pubDate>
    <dc:creator>Bio_TICFSL</dc:creator>
    <dc:date>2024-04-16T14:26:42Z</dc:date>
    <item>
      <title>PRELU compilation error on iMX8MP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/PRELU-compilation-error-on-iMX8MP/m-p/1847024#M222512</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm having issues compiling my model with PReLU activation for iMX8MP. This operation is supposed to be supported.&lt;/P&gt;&lt;P&gt;I'm converting and quantizing (to int8) the model from keras to tflite using quantization aware training with native tflite methods&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;k_model = keras.models.load_model(path_keras)&lt;BR /&gt;print("Converting Keras model to int8 tflite format")&lt;BR /&gt;converter = tf.lite.TFLiteConverter.from_keras_model(k_model)&lt;BR /&gt;converter.target_spec.supported_ops = [&lt;BR /&gt;tf.lite.OpsSet.TFLITE_BUILTINS,&lt;BR /&gt;tf.lite.OpsSet.TFLITE_BUILTINS_INT8,&lt;BR /&gt;]&lt;BR /&gt;converter.optimizations = [tf.lite.Optimize.DEFAULT]&lt;BR /&gt;converter.representative_dataset = tf.lite.RepresentativeDataset(&lt;BR /&gt;ImageDataset(shuffle=True, limit=200, channel_first=False, input_name="input_1").generator&lt;BR /&gt;)&lt;BR /&gt;converter.target_spec.supported_ops = [tf.lite.OpsSet.TFLITE_BUILTINS_INT8]&lt;BR /&gt;converter.inference_input_type = tf.int8&lt;BR /&gt;converter.inference_output_type = tf.int8&lt;BR /&gt;tflite_model = converter.convert()&lt;BR /&gt;with open(path_tflite, "wb") as f:&lt;BR /&gt;f.write(tflite_model)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This is the error:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN class=""&gt;Vx delegate: allowed_cache_mode &lt;SPAN&gt;set &lt;/SPAN&gt;to &lt;SPAN&gt;0.&lt;BR /&gt;&lt;/SPAN&gt;Vx delegate: device num &lt;SPAN&gt;set &lt;/SPAN&gt;to &lt;SPAN&gt;0.&lt;BR /&gt;&lt;/SPAN&gt;Vx delegate: allowed_builtin_code &lt;SPAN&gt;set &lt;/SPAN&gt;to &lt;SPAN&gt;0.&lt;BR /&gt;&lt;/SPAN&gt;Vx delegate: error_during_init &lt;SPAN&gt;set &lt;/SPAN&gt;to &lt;SPAN&gt;0.&lt;BR /&gt;&lt;/SPAN&gt;Vx delegate: error_during_prepare &lt;SPAN&gt;set &lt;/SPAN&gt;to &lt;SPAN&gt;0.&lt;BR /&gt;&lt;/SPAN&gt;Vx delegate: error_during_invoke &lt;SPAN&gt;set &lt;/SPAN&gt;to &lt;SPAN&gt;0.&lt;BR /&gt;&lt;/SPAN&gt;input: serving_default_input_1:&lt;SPAN&gt;0&lt;/SPAN&gt;shape: &lt;SPAN&gt;[ &lt;/SPAN&gt;&lt;SPAN&gt;1 112 112 3&lt;/SPAN&gt;&lt;SPAN&gt;] &lt;/SPAN&gt;dtype: &amp;lt;&lt;SPAN&gt;class &lt;/SPAN&gt;&lt;SPAN&gt;'numpy.int8'&lt;/SPAN&gt;&amp;gt;&lt;BR /&gt;W &lt;SPAN&gt;[&lt;/SPAN&gt;HandleLayoutInfer:&lt;SPAN&gt;274&lt;/SPAN&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;Op &lt;SPAN&gt;162&lt;/SPAN&gt;: default layout inference &lt;SPAN&gt;pass&lt;/SPAN&gt;.&lt;BR /&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;267&lt;/SPAN&gt;:&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;: error : Error&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;,&lt;SPAN&gt;267&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;: Cannot find the header file cl_viv_vx_ext.h.&lt;BR /&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;25&lt;/SPAN&gt;:&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;: error : undefined identifier: 'COPY'&lt;BR /&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;59&lt;/SPAN&gt;:&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;: error : undefined identifier: 'COPY'&lt;BR /&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;270&lt;/SPAN&gt;:&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;: error : syntax error at &lt;SPAN&gt;'VXC_512Bits'&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;ERROR: Failed to &lt;SPAN&gt;compile &lt;/SPAN&gt;vx shader. (error: FFFFFFFF)&lt;BR /&gt;E &lt;SPAN&gt;[&lt;/SPAN&gt;kernel/vsi_nn_kernel.c:_gpu_register:&lt;SPAN&gt;600&lt;/SPAN&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;Build program fail.&lt;BR /&gt;E &lt;SPAN&gt;[&lt;/SPAN&gt;kernel/vsi_nn_kernel.c:vsi_nn_kernel_create_node:&lt;SPAN&gt;874&lt;/SPAN&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;Register client kernel com.vivantecorp.extension.evis.prelu_U8U8toU8_2D fail &lt;SPAN&gt;with &lt;/SPAN&gt;-&lt;SPAN&gt;1.&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;267&lt;/SPAN&gt;:&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;: error : Error&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;,&lt;SPAN&gt;267&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;: Cannot find the header file cl_viv_vx_ext.h.&lt;BR /&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;25&lt;/SPAN&gt;:&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;: error : undefined identifier: 'COPY'&lt;BR /&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;59&lt;/SPAN&gt;:&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;: error : undefined identifier: 'COPY'&lt;BR /&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;270&lt;/SPAN&gt;:&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;: error : syntax error at &lt;SPAN&gt;'VXC_512Bits'&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN class=""&gt;This is repeated for 49 times and then this last error is shown:&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;ERROR: Failed to compile vx shader. (error: FFFFFFFF)&lt;BR /&gt;E [kernel/vsi_nn_kernel.c:_gpu_register:600]Build program fail.&lt;BR /&gt;E [kernel/vsi_nn_kernel.c:vsi_nn_kernel_create_node:874]Register client kernel com.vivantecorp.extension.evis.prelu_U8U8toU8_2D fail with -1.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;Do you identify this error? PReLU is supposed to work, why am I seeing this error? &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2024 09:48:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/PRELU-compilation-error-on-iMX8MP/m-p/1847024#M222512</guid>
      <dc:creator>jetxeberria</dc:creator>
      <dc:date>2024-04-15T09:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: PRELU compilation error on iMX8MP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/PRELU-compilation-error-on-iMX8MP/m-p/1848204#M222600</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does this happens on 6.6.3v BSP? since is the first one that support PRELU.&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2024 14:26:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/PRELU-compilation-error-on-iMX8MP/m-p/1848204#M222600</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2024-04-16T14:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: PRELU compilation error on iMX8MP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/PRELU-compilation-error-on-iMX8MP/m-p/1848228#M222602</link>
      <description>&lt;P&gt;it should be supported, at least it is state int he docs:&amp;nbsp;&lt;A href="https://github.com/nxp-imx/tflite-vx-delegate-imx/blob/lf-5.15.5_1.0.0/op_status.md" target="_blank"&gt;https://github.com/nxp-imx/tflite-vx-delegate-imx/blob/lf-5.15.5_1.0.0/op_status.md&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2024 15:04:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/PRELU-compilation-error-on-iMX8MP/m-p/1848228#M222602</guid>
      <dc:creator>jorgemf</dc:creator>
      <dc:date>2024-04-16T15:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: PRELU compilation error on iMX8MP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/PRELU-compilation-error-on-iMX8MP/m-p/1848236#M222604</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;Hello Bio_TICFSL,&lt;/P&gt;&lt;P&gt;Thanks for your response.&lt;/P&gt;&lt;P&gt;We're using Kirkstone 5.15.71_2.2.0. Docs say it's supported: &lt;A href="https://github.com/nxp-imx/tflite-vx-delegate-imx/blob/lf-5.15.71_2.2.0/op_status.md" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/nxp-imx/tflite-vx-delegate-imx/blob/lf-5.15.71_2.2.0/op_status.md&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 16 Apr 2024 15:09:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/PRELU-compilation-error-on-iMX8MP/m-p/1848236#M222604</guid>
      <dc:creator>jetxeberria</dc:creator>
      <dc:date>2024-04-16T15:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: PRELU compilation error on iMX8MP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/PRELU-compilation-error-on-iMX8MP/m-p/1848252#M222605</link>
      <description>&lt;P&gt;I had an similar error this week. For me it was the missing header file&amp;nbsp;&lt;SPAN class=""&gt;cl_viv_vx_ext.h&lt;/SPAN&gt; that is also missing in the error message. I think it was in the opencl recipe and the header file is only copied on the yocto image if something happens (its been too long), but what you can try: just create the header file with&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/larrylart/codrive/blob/master/hw_sampling/vim3_npu/include/aml_sdk/CL/cl_viv_vx_ext.h" target="_blank"&gt;https://github.com/larrylart/codrive/blob/master/hw_sampling/vim3_npu/include/aml_sdk/CL/cl_viv_vx_ext.h &lt;/A&gt;&lt;/P&gt;&lt;P&gt;and place it in the folder of youre executable.&lt;/P&gt;&lt;P&gt;Best wishes&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2024 15:22:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/PRELU-compilation-error-on-iMX8MP/m-p/1848252#M222605</guid>
      <dc:creator>JeFi</dc:creator>
      <dc:date>2024-04-16T15:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: PRELU compilation error on iMX8MP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/PRELU-compilation-error-on-iMX8MP/m-p/1848930#M222649</link>
      <description>&lt;P&gt;This worked. Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2024 09:36:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/PRELU-compilation-error-on-iMX8MP/m-p/1848930#M222649</guid>
      <dc:creator>jorgemf</dc:creator>
      <dc:date>2024-04-17T09:36:43Z</dc:date>
    </item>
  </channel>
</rss>

