# Could not find class for TF Ops: ResourceGather

**URL:** <https://community.konduit.ai/t/could-not-find-class-for-tf-ops-resourcegather/641>\
**Category:** DL4J\
**Created:** [June 22, 2020, 8:49am UTC](https://community.konduit.ai/t/could-not-find-class-for-tf-ops-resourcegather/641 "2020-06-22T08:49:24Z")\
**Posts on this page:** 2\
**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 22, 2020, 8:49am UTC](https://community.konduit.ai/t/could-not-find-class-for-tf-ops-resourcegather/641/1 "2020-06-22T08:49:24Z")

</div>

at tf-import-examples, Imdb.java, console says:

```auto
Exception in thread "main" java.lang.IllegalStateException: Could not find class for TF Ops: ResourceGather

```

it seems their is a same problem at

> <https://github.com/eclipse/deeplearning4j/issues/8564>
>
> This is from our tf-import-examples IMDB example.
> 
> \[imdb.pb.zip\](https://githu…b.com/eclipse/deeplearning4j/files/3989675/imdb.pb.zip)
> 
> pbtxt, \[here\](https://gist.github.com/eraly/c540a41ba8163db3cdb0fef288ba82db)
> 
> According to Raver this looks exactly like the gather operation. Not sure why this pb says resource gather. 
> 
> Exception in thread "main" java.lang.IllegalStateException: Could not find class for TF Ops: ResourceGather
> at org.nd4j.base.Preconditions.throwStateEx(Preconditions.java:641)         
> at org.nd4j.base.Preconditions.checkState(Preconditions.java:304)           
> at org.nd4j.imports.graphmapper.tf.TFGraphMapper.importGraph(TFGraphMapper.java:278)
> at org.nd4j.imports.graphmapper.tf.TFGraphMapper.importGraph(TFGraphMapper.java:141)
> at org.nd4j.imports.graphmapper.tf.TFGraphMapper.importGraph(TFGraphMapper.java:87)
> at org.nd4j.imports.graphmapper.tf.TFGraphMapper.importGraph(TFGraphMapper.java:73)
> at org.nd4j.examples.Imdb.loadModel(Imdb.java:86)                           
> at org.nd4j.examples.Imdb.main(Imdb.java:102)                               
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)              
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)                         
> at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)

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 26, 2020, 6:38am UTC](https://community.konduit.ai/t/could-not-find-class-for-tf-ops-resourcegather/641/2 "2020-06-26T06:38:26Z")

</div>

We have dropped this example, exactly because this operation isn’t supported for import yet.

When looking at examples, please make sure you are using the newest version. See [Rework of Deeplearning4J Examples](https://community.konduit.ai/t/rework-of-deeplearning4j-examples/619)
