GitXplorerGitXplorer
s

td3a_cpp_deep

public
1 stars
0 forks
0 issues

Commits

List of commits on branch main.
Verified
4f907cea823a4a45499f0a2d42f1eafd839de787

Merge pull request #2 from sdpython/py2

xxadupre committed 2 years ago
Unverified
27bf389b1f5f7e46abac2fe9399da4857ed7b7b7

az

xxadupre committed 2 years ago
Unverified
2ec2dc308f9459010e542688c138e7ee02177dae

Updates torch to 2.0

xxadupre committed 2 years ago
Unverified
79a2875fc9484ca9ee5c47d52c7e6f8eac9a272d

documentation

ssdpython committed 2 years ago
Unverified
744924cc7e284e2866684676b27955f106b17ff3

update CI

ssdpython committed 2 years ago
Unverified
37f82b21f24b561c86766ee5382ee8ac4d010348

lint

ssdpython committed 2 years ago

README

The README file for this repository.

.. image:: https://circleci.com/gh/sdpython/td3a_cpp_deep/tree/main.svg?style=svg :target: https://circleci.com/gh/sdpython/td3a_cpp_deep/tree/main

.. image:: https://travis-ci.com/sdpython/td3a_cpp_deep.svg?branch=main :target: https://app.travis-ci.com/github/sdpython/td3a_cpp_deep :alt: Build status

.. image:: https://ci.appveyor.com/api/projects/status/9db19ijdr8xplptj?svg=true :target: https://ci.appveyor.com/project/sdpython/td3a-cpp :alt: Build Status Windows

.. image:: https://dev.azure.com/xavierdupre3/td3a_cpp_deep/_apis/build/status/sdpython.td3a_cpp_deep :target: https://dev.azure.com/xavierdupre3/td3a_cpp_deep/

.. image:: https://badge.fury.io/py/td3a_cpp_deep.svg :target: http://badge.fury.io/py/td3a_cpp_deep

.. image:: http://img.shields.io/github/issues/sdpython/td3a_cpp_deep.png :alt: GitHub Issues :target: https://github.com/sdpython/td3a_cpp_deep/issues

.. image:: https://img.shields.io/badge/license-MIT-blue.svg :alt: MIT License :target: http://opensource.org/licenses/MIT

.. image:: https://img.shields.io/github/repo-size/sdpython/td3a_cpp_deep :target: https://github.com/sdpython/td3a_cpp_deep/ :alt: size

td3a_cpp_deep: template to implement torch extension

.. image:: https://raw.githubusercontent.com/sdpython/td3a_cpp_deep/main/doc/_static/logo.png :width: 50

documentation <http://www.xavierdupre.fr/app/td3a_cpp_deep/helpsphinx/index.html>_

Simple template to implement an algorithm with cython and openmp. It implements simple examples to demonstrate the speed up obtained by using cython. The module must be compiled to be used inplace:

::

python setup.py build_ext --inplace

Generate the setup in subfolder dist:

::

python setup.py sdist

Generate the documentation in folder dist/html:

::

python -m sphinx -T -b html doc dist/html

Run the unit tests:

::

python -m unittest discover tests

Or:

::

python -m pytest

To check style:

::

python -m flake8 td3a_cpp_deep tests examples

The function check or the command line python -m td3a_cpp_deep check checks the module is properly installed and returns processing time for a couple of functions or simply:

::

import td3a_cpp_deep
td3a_cpp_deep.check()