DL_user
2018-10-02 21:55:09 UTC
Why do these two functions have different outputs, even both of them
defined from numpy's dot() function:
x = T.dmatrix('x')
y = T.dvector('y')
z = np.dot(x,y)
f = theano.function([x,y],z)
f([[1,2,3],[4,5,6]],[7,8,9])
Out[31]:
array([[ 7., 16., 27.],
[28., 40., 54.]])
np.dot([[1,2,3],[4,5,6]],[7,8,9])
Out[32]: array([ 50, 122])
defined from numpy's dot() function:
x = T.dmatrix('x')
y = T.dvector('y')
z = np.dot(x,y)
f = theano.function([x,y],z)
f([[1,2,3],[4,5,6]],[7,8,9])
Out[31]:
array([[ 7., 16., 27.],
[28., 40., 54.]])
np.dot([[1,2,3],[4,5,6]],[7,8,9])
Out[32]: array([ 50, 122])
--
---
You received this message because you are subscribed to the Google Groups "theano-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to theano-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
---
You received this message because you are subscribed to the Google Groups "theano-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to theano-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.