import tensorflow as tf

        return T.ones(shape, dtype)
    else:
        assert K.backend() == 'tensorflow'
        import tensorflow as tf
        return tf.ones(shape, dtype)


def zeros(shape, dtype=K.floatx()):
