DyNet is a library for dynamic neural networks and deep learning. It is written in C++ and can be linked from Python.
Questions tagged [dynet]
10 questions
                    
                    2
                    
            votes
                
                1 answer
            
        ImportError libdynet.so: cannot open shared object file, No such file or directory
Today I tried to run a simple dynet program (that I ran several months ago with no problems), and got the following error:
Traceback (most recent call last):
  File "/home/erelsgl/Dropbox/dicta/text-taggers/test_dynet.py", line 1, in 
   … 
        
        Erel Segal-Halevi
        
- 33,955
 - 36
 - 114
 - 183
 
                    2
                    
            votes
                
                1 answer
            
        Gradient error occurred when calculate two embeddings on eager mode
When I tried to rewrite a dynet project with tensorflow on eager mode, the following error occurred: 
tensorflow.python.framework.errors_impl.InvalidArgumentError: cannot compute ConcatV2 as input #1 was expected to be a float tensor but is a int32…
        
        Hugo
        
- 23
 - 2
 
                    1
                    
            vote
                
                3 answers
            
        How to check what binary library file does python link to?
Some time ago, I installed dynet for Python and it worked fine. I installed it automatically with pip install git+https://github.com/clab/dynet#egg=dynet.
Then, I wanted to add MKL support. So I installed dynet again manually,  using the…
        
        Erel Segal-Halevi
        
- 33,955
 - 36
 - 114
 - 183
 
                    0
                    
            votes
                
                0 answers
            
        Unique graph nodes with custom type in DyNetx
So I am trying to build a python application that manages a directed temporal graph (so edges happen at a time T). I am using DyNetx with the function to read the graph from a Dataset where every row is a 3-tuple that has: startNode, endNode,…
        
        21 Gix
        
- 1
 
                    0
                    
            votes
                
                1 answer
            
        No module named 'pycnn'
We built a project using pycnn. Currently it has been replaced by dynet.Now how can we get pycnn back?
        
        Nadeeshani William
        
- 698
 - 6
 - 10
 
                    0
                    
            votes
                
                1 answer
            
        updating subset of parameters in dynet
Is there a way to update a subset of parameters in dynet? For instance in the following toy example, first update h1, then h2:
 model = ParameterCollection()
 h1 = model.add_parameters((hidden_units, dims))
 h2 = model.add_parameters((hidden_units,…
        
        user3639557
        
- 4,791
 - 6
 - 30
 - 55
 
                    0
                    
            votes
                
                1 answer
            
        CPU memory allocation failed in Dynet
I am not sure why I am running out of memory. Take the parser of Goldberg, all I do is to change this line:
scores, exprs = self.__evaluate(conll_sentence, True)
and add a for loop around it to repeat it K times:
for k in xrange(K):
    scores,…
        
        user3639557
        
- 4,791
 - 6
 - 30
 - 55
 
                    0
                    
            votes
                
                0 answers
            
        Right way to add a numpy array and an expression in Dynet?
What is the proper way to add a parameter and a numpy generated array in Dynet? For instance, when I try the following:
from dynet import *
import numpy as np
import numpy.matlib as npm
model = ParameterCollection()
....
LayerA =…
        
        user3639557
        
- 4,791
 - 6
 - 30
 - 55
 
                    0
                    
            votes
                
                1 answer
            
        calling parameters by name in dynet
Is there a way to call a parameter by its name in dynet:
def dosomething(model):
    temp = model.get_parameter("temp") #something like this?
    ...
def create():
    Model = ParameterCollection()
    temp = Model.add_parameters((2,2))
    ...
   …
        
        user3639557
        
- 4,791
 - 6
 - 30
 - 55
 
                    0
                    
            votes
                
                1 answer
            
        How to read back the "random-seed" from a saved model of Dynet
I have a model already trained by dynet library. But i forget the --dynet-seed parameter when training this model. 
Does anyone know how to read back this parameter from the saved model?
Thank you in advance for any feedback.
        
        Hoang Nguyen
        
- 3
 - 1