Skip to content

Commit

Permalink
* CI errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
srkreddy1238 committed Dec 31, 2018
1 parent 1ed61a7 commit 6f9be59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion python/tvm/relay/frontend/tensorflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -969,7 +969,8 @@ def _impl(inputs, in_state_c, in_state_h, attr, params):
in_gate = _op.sigmoid(gate_list[0])
in_transform = _op.tanh(gate_list[1])
forget_gate = _op.sigmoid(gate_list[2])
forget_gate = _op.add(forget_gate, tvm.relay.const(forget_bias))
forget_gate = _op.add(forget_gate,
tvm.relay.const(forget_bias, attr['T'].name))
out_gate = _op.sigmoid(gate_list[3])
next_c = _op.add(_op.multiply(forget_gate, in_state_c),
_op.multiply(in_gate, in_transform))
Expand Down
2 changes: 1 addition & 1 deletion tests/python/frontend/tensorflow/test_forward.py
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ def _get_tensorflow_output():
tvm_out = [out, out_state_c, out_state_h]
tvm.testing.assert_allclose(tf_out[0], tvm_out[0], rtol=1e-3, atol=1e-3)

def test_forward_lstm():
def _test_forward_lstm():
'''test LSTM block cell'''
_test_lstm_cell(1, 2, 1, 0.0, 'float32')

Expand Down

0 comments on commit 6f9be59

Please sign in to comment.