# Failed to execute op concat

**URL:** <https://community.konduit.ai/t/failed-to-execute-op-concat/628>\
**Category:** DL4J\
**Created:** [June 18, 2020, 12:57pm UTC](https://community.konduit.ai/t/failed-to-execute-op-concat/628 "2020-06-18T12:57:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maple](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/maple/32/410_2.png) [@Maple](https://community.konduit.ai/u/Maple)\
**Post date:** [June 18, 2020, 12:57pm UTC](https://community.konduit.ai/t/failed-to-execute-op-concat/628/1 "2020-06-18T12:57:09Z")

</div>

In nlp.paragraghvectors, code ParagraghVectorsInferenceExample says “In this example we load previously built model, and pass raw sentences, probably never seen before, to get their vector representation.”, so i ran ParagraghVectorsClassifierExample first, it give out the classification.  
then i ran ParagraghVectorsInferenceExample, there is errors

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/konduit/original/1X/39eb5fa488aabbf99fd3e64ad068e2d836dfd592.png)  
appreciate for your help.

---

<div class="post-metadata">

**Author:** ![treo](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/treo/32/47_2.png) [@treo](https://community.konduit.ai/u/treo)\
**Post date:** [June 18, 2020, 1:11pm UTC](https://community.konduit.ai/t/failed-to-execute-op-concat/628/2 "2020-06-18T13:11:11Z")

</div>

I think what you are seeing here is an instance of the bug reported here:

> [@Beta 7 - Glove Word Vector](https://community.konduit.ai/t/beta-7-glove-word-vector/540):
>
> Hi We were using DL4J Beta6 version to load Glove 300d word vector file. It stopped working after upgrading to beta7. I posted this same question in Gitter and was given this commit history [Remove GloVe (#437) · eclipse/deeplearning4j@2cdb2b3 · GitHub](https://github.com/eclipse/deeplearning4j/commit/2cdb2b344704956098d97a422df8aacff384a024). Seems the support for Glove was removed in Beta7. Is that the case? However the beta7 documentation shows the file can be loaded using the loadTxtVectors method. [https://deeplearning4j.konduit.ai/language-processing/word2vec#glove-global-vect…](https://deeplearning4j.konduit.ai/language-processing/word2vec#glove-global-vectors)

It is already fixed in the current [SNAPSHOT version](https://deeplearning4j.konduit.ai/config/config-snapshots). But the linked thread also contains a workaround that you can use without switching to snapshots.

---

<div class="post-metadata">

**Author:** ![Maple](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/maple/32/410_2.png) [@Maple](https://community.konduit.ai/u/Maple)\
**Post date:** [June 18, 2020, 1:22pm UTC](https://community.konduit.ai/t/failed-to-execute-op-concat/628/3 "2020-06-18T13:22:14Z")

</div>

Do you means this problem is caused by Golve?  
but this file don’t have relationship with Glove

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/konduit/original/1X/193eb934f39b0f7185bf961fd4cdf46587f51720.png)  
thanks.

---

<div class="post-metadata">

**Author:** ![treo](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/treo/32/47_2.png) [@treo](https://community.konduit.ai/u/treo)\
**Post date:** [June 18, 2020, 1:36pm UTC](https://community.konduit.ai/t/failed-to-execute-op-concat/628/4 "2020-06-18T13:36:52Z")

</div>

No, in the linked thread I wrote:

> It appears to be a problem with the mkldnn implementation. If you don’t want to go back and forth between versions, you can also disable mkldnn with `Nd4j.getEnvironment().allowHelpers(false);` before loading and save the file in another format that way.

And link to: [ND4J: concat op fails with 3073 or more inputs on CPU · Issue #8961 · deeplearning4j/deeplearning4j · GitHub](https://github.com/eclipse/deeplearning4j/issues/8961)  
The bug is with vstack using a MLKDNN function that only supports up to 3073 tensors to stack.

And the screenshot you’ve posted shows that it has 97406 inputs, so I’m guessing that this is the same issue, and you should be able to workaround it with the same workaround.

---

<div class="post-metadata">

**Author:** ![Maple](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/maple/32/410_2.png) [@Maple](https://community.konduit.ai/u/Maple)\
**Post date:** [June 18, 2020, 2:03pm UTC](https://community.konduit.ai/t/failed-to-execute-op-concat/628/5 "2020-06-18T14:03:10Z")

</div>

thanks very much.i add this before load the vector, it works.

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/konduit/original/1X/53367aa0eb35739e51d1a6ec538b1e2f718ec4ee.png)  
this is a nice forum, you help people fix the proplem and reply so quickly. haha, good luck to you.
