Comments (18)
Exact error and the code line
InvalidArgumentError (see above for traceback): You must feed a value for placeholder tensor 'input/sp_childs' with dtype int32 and shape [5,2,20,20]
For complete model training
---> 29 _, _loss, step, _summary = sess.run([train_op, total_loss, global_step_dep, summary], feed_dict)
from relation-classification-using-bidirectional-lstm-tree.
first check whether [[childs_path1[k], childs_path2[k]] for k in range(s, end)] has the same dimension as [5, 2, 20, 20] and also the data type
from relation-classification-using-bidirectional-lstm-tree.
Thank you Shanu for the response.
I tried for a small sample as it was slow. But now i tried with all 8000 and am running them in python2
All pickles are written with python2
Now I get this error.
InvalidArgumentError (see above for traceback): Inputs to operation gradients_1/AddN_1101 of type AddN must have the same size and shape. Input 0: [2,20,1,100] != input 1: [2,1,1,100
This is in model3v2, this line of code
For complete model training
_, _loss, step, _summary = sess.run([train_op, total_loss, global_step_dep, summary], feed_dict)
Kindly help
from relation-classification-using-bidirectional-lstm-tree.
please try using python 3.
Just use printing the shapes of this tensors, then debug the code
from relation-classification-using-bidirectional-lstm-tree.
Hey shanu, why should there be a change in dimensions of the tensors, if i am using the same data as yours @arunzz were you able to solve the problem?
from relation-classification-using-bidirectional-lstm-tree.
Can you please post the error or for which tensors dimension problem is occurring?
from relation-classification-using-bidirectional-lstm-tree.
from relation-classification-using-bidirectional-lstm-tree.
@arunzz can you share some more insights, actually i am currently learning about it meanwhile i am working on this. It will be a great help. or maybe you can share your version.
from relation-classification-using-bidirectional-lstm-tree.
from relation-classification-using-bidirectional-lstm-tree.
It worked, thanks shanu :)
from relation-classification-using-bidirectional-lstm-tree.
@arunzz @NeverInAsh I'm wondering what you guys did to fix the error? I am running python 3
from relation-classification-using-bidirectional-lstm-tree.
from relation-classification-using-bidirectional-lstm-tree.
@arunzz I have meet the same problem. I am running python 3, but the problem still exist. Can you attached the worked model3v2 source file?
from relation-classification-using-bidirectional-lstm-tree.
from relation-classification-using-bidirectional-lstm-tree.
@arunzz which version of tensorlfow and python you use?
from relation-classification-using-bidirectional-lstm-tree.
@arunzz when I don't init glove embedding in your source file, it will exist the error:
InvalidArgumentError (see above for traceback): slice index 1 of dimension 0 out of bounds.
[[Node: gradients_1/hidden_layer_seq/while_3/strided_slice_grad/StridedSliceGrad = StridedSliceGrad[Index=DT_INT32, T=DT_FLOAT, begin_mask=0, ellipsis_mask=0, end_mask=0, new_axis_mask=0, shrink_axis_mask=1, _device="/job:localhost/replica:0/task:0/device:CPU:0"]
when I init glove embedding, it will exist the error:
InvalidArgumentError (see above for traceback): Inputs to operation gradients_1/AddN_1101 of type AddN must have the same size and shape. Input 0: [2,20,1,100] != input 1: [2,1,1,100]
from relation-classification-using-bidirectional-lstm-tree.
@arunzz When I use tensorflow 1.12.0, it will lead "ArithmeticOptimize" error. Then I replaced the version of tensorflow 1.8.0. and worked. But it will occur "concat" error and "hidden_layer" error. Then I replaced the version of tensorflow 1.10.0. Your source file finally worked.
from relation-classification-using-bidirectional-lstm-tree.
@arunzz in model3v2
model = tf.train.latest_checkpoint(model_dir)
saver.restore(sess, model)
when I try to restore
the error says 👎
ValueError: Can't load save_path when it is None.
Please help
from relation-classification-using-bidirectional-lstm-tree.
Related Issues (20)
- share original dataset
- when I run model3v2, there is an error. HOT 1
- error during running modelv1 HOT 4
- unable to execute completely HOT 9
- Parameters
- Can we use our own data set to train the models and predict our own test set? HOT 15
- Questions about the test data HOT 1
- which version of tensorflow are you using? HOT 4
- model3v1 A mistake HOT 1
- Can't find the "checkpoint" folder HOT 1
- stanford_parser.jar HOT 1
- cannot execute the file preprocessing.py completely
- training_data.txt doesn't exist in data
- i run model3v1, but get run error like this: HOT 5
- Hello, i train model3v2 on SemEval 2010 task8 dataset, but cannot get the 84% f1? HOT 5
- NLTK with corenlp HOT 2
- HELLO, I change a dataset , have some wrong.
- Can add attention mechanism in the code? HOT 2
- Hi,I have re-run your modelv4 on LCA shortest path,but the test accuracy is only 9%... HOT 20
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from relation-classification-using-bidirectional-lstm-tree.