Eine aufbereitete Darstellung der Quelle

 
     
 
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung


Quelle  test_pytorch.py   Sprache: Python

 

#!/usr/bin/env python
"""
Run tests involving pytorch

These are separate from the other optional dependency tests because pytorch
may have specific version requirements.
"
""

TEST_LIST = DOCTEST_LIST = [
    'sympy/printing/pytorch.py',
    'sympy/printing/tests/test_torch.py',
    'sympy/utilities/lambdify.py',
    'sympy/utilities/tests/test_lambdify.py',
]


if __name__ == "__main__":

    import sys

    # Add the local SymPy to sys.path (needed for CI)
    from get_sympy import path_hack
    path_hack()
    import sympy

    # Note: The doctests are not tested here but there are many failures when
    # running them with symengine.
    args = TEST_LIST
    test_exit_code = sympy.test(*args, verbose=True)
    if test_exit_code != 0:
        sys.exit(test_exit_code)
    doctest_exit_code = sympy.doctest(*DOCTEST_LIST)
    exit_code = 0 if doctest_exit_code is True else 1
    sys.exit(exit_code)

Messung
CHZG
891008992

¤ Dauer der Verarbeitung: 0.0 Sekunden  (vorverarbeitet am  2026-11-24) ¤

*© Formatika GbR, Deutschland







                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

Open Source Software


Gedichte
Musik
Bilder

Jenseits des Üblichen

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1,188,294
#Domains=919,313