Open
Changes from all commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Failed to load files.
Original file line numberDiff line numberDiff line change
Expand Up@@ -81,7 +81,7 @@ def test_batch_func_next_step(func, args):

def test_custom_dense_layer_output(y):
# define the ground truth value for the array
true_y = np.array([[0.27064407, 0.1826951, 0.50374055]],dtype='float32')
true_y = np.array([[0.26978594 0.45750412 0.66536945]],dtype='float32')
assert tf.shape(y).numpy().tolist() == list(true_y.shape), "[FAIL] output is of incorrect shape. expected {} but got {}".format(true_y.shape, y.numpy().shape)
np.testing.assert_almost_equal(y.numpy(), true_y, decimal=7, err_msg="[FAIL] output is of incorrect value. expected {} but got {}".format(true_y, y.numpy()), verbose=True)
print("[PASS] test_custom_dense_layer_output")
Expand Down