# Froze graph to pb, Exception: 1 Unprocessed nodes

**URL:** https://community.konduit.ai/t/froze-graph-to-pb-exception-1-unprocessed-nodes/1100
**Category:** ND4J
**Created:** [January 4, 2021, 2:57am UTC](https://community.konduit.ai/t/froze-graph-to-pb-exception-1-unprocessed-nodes/1100 "2021-01-04T02:57:58Z")
**Posts on this page:** 3
**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: [January 4, 2021, 2:57am UTC](https://community.konduit.ai/t/froze-graph-to-pb-exception-1-unprocessed-nodes/1100/1 "2021-01-04T02:57:59Z")

</div>

When i try to use the **freezeTrainedBert.py** to **freeze the graph** , i choose the node name : **loss/SparseSoftmaxCrossEntropyWithLogits/SparseSoftmaxCrossEntropyWithLogits** , but i got follow exception:

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

> Blockquote  
> Exception in thread “main” java.lang.IllegalStateException: 1 Unprocessed nodes: [loss/SparseSoftmaxCrossEntropyWithLogits/SparseSoftmaxCrossEntropyWithLogits]  
> at org.nd4j.common.base.Preconditions.throwStateEx(Preconditions.java:641)  
> at org.nd4j.common.base.Preconditions.checkState(Preconditions.java:340)  
> at org.nd4j.imports.graphmapper.tf.TFGraphMapper.importGraph(TFGraphMapper.java:512)  
> at org.nd4j.imports.graphmapper.tf.TFGraphMapper.importGraph(TFGraphMapper.java:140)  
> at org.nd4j.imports.graphmapper.tf.TFGraphMapper.importGraph(TFGraphMapper.java:86)  
> at org.deeplearning4j.modelimportexamples.tf.advanced.bert.BertInferenceExample3.main(BertInferenceExample3.java:64)

thanks so much.

---

<div class="post-metadata">

### Author: ![agibsonccc](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/agibsonccc/32/697_2.png) [@agibsonccc](https://community.konduit.ai/u/agibsonccc)
#### Post date: [January 4, 2021, 10:33pm UTC](https://community.konduit.ai/t/froze-graph-to-pb-exception-1-unprocessed-nodes/1100/2 "2021-01-04T22:33:44Z")

</div>

@Maple that looks like a disconnected node found during import. Make sure the node has inputs and that every node has a constant or placeholder associated with it in the graph.

---

<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: [January 5, 2021, 2:53am UTC](https://community.konduit.ai/t/froze-graph-to-pb-exception-1-unprocessed-nodes/1100/3 "2021-01-05T02:53:59Z")

</div>

the nodes has inputs, and the model can be fine tuned correctly. i tried another way.for example:  
 ![image](https://canada1.discourse-cdn.com/flex035/uploads/konduit/original/1X/26f41d611ab699117ccb219dafe082dae8e05428.png)  
i choose this node,“loss/Softmax”, in BertInferenceExample, it choose this too.and i can froze the graph to pb, like this:  
 ![image](https://canada1.discourse-cdn.com/flex035/uploads/konduit/original/1X/83fed1e5e51aec032b5de9453e6e06d53b01e406.png)  
but i run it in BertInferenceExample, it goes Exception.

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