<commit_before>"""
Module containing functions to differentiate functions using tensorflow.
"""
try:
    import tensorflow as tf
    from tensorflow.python.ops.gradients import _hessian_vector_product<commit_msg>Moved import location for tf h-v product This fixes https://github.com/pymanopt/pymanopt/issues/30. Some examples still have issues because of tensorflow dims, will fix this next.<commit_after>"""
Module containing functions to differentiate functions using tensorflow.
"""
try:
    import tensorflow as tf
    try:
        from tensorflow.python.ops.gradients import _hessian_vector_product
    except ImportError:
        from tensorflow.python.ops.gradients_impl import \
            _hessian_vector_product
{'fraction_non_alphanumeric': 0.06371191135734072, 'fraction_numerical': 0.002770083102493075, 'mean_word_length': 4.2773722627737225, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2218569', 'n_tokens_mistral': 192, 'n_tokens_neox': 184, 'n_words': 64}