add gene type RNN
This commit is contained in:
13
examples/rnn_forward_test.py
Normal file
13
examples/rnn_forward_test.py
Normal file
@@ -0,0 +1,13 @@
|
||||
import numpy as np
|
||||
|
||||
|
||||
vals = np.array([1, 2])
|
||||
weights = np.array([[0, 4], [5, 0]])
|
||||
|
||||
ins1 = vals * weights[:, 0]
|
||||
ins2 = vals * weights[:, 1]
|
||||
ins_all = vals * weights.T
|
||||
|
||||
print(ins1)
|
||||
print(ins2)
|
||||
print(ins_all)
|
||||
Reference in New Issue
Block a user