Skip to content

Instantly share code, notes, and snippets.

import keras.backend as K
import tensorflow as tf
import numpy as np
import theano
import theano.tensor as T
a = np.ndarray.astype(np.random.rand(4), dtype=np.float32)
b = np.ndarray.astype(np.random.rand(4, 14), dtype=np.float32)
import keras
from keras.models import Model
import keras.backend as K
from keras.engine.topology import Layer, InputLayer, Input, Node
from keras.layers import merge, Dense, TimeDistributed, LSTM
import theano.tensor as T
import theano
import numpy as np