https://github.com/tensorly/tensorly
Revision 163b4e6ab2ebcdad31d2c2f5cff2f52defe5e4ae authored by ctan on 08 February 2022, 18:34:10 UTC, committed by ctan on 08 February 2022, 18:34:10 UTC
2 parent s 842edda + 2dd1f61
Raw File
Tip revision: 163b4e6ab2ebcdad31d2c2f5cff2f52defe5e4ae authored by ctan on 08 February 2022, 18:34:10 UTC
Merge branch 'covid_example' into covid_notebook
Tip revision: 163b4e6
Makefile
# Automate testing etc
BACKEND?='numpy'

.PHONY: all test install clean debug

all: install test

install:
	pip install -e .

debug:
	TENSORLY_BACKEND=$(BACKEND) pytest -v --pdb tensorly

test:
	TENSORLY_BACKEND=$(BACKEND) pytest -v tensorly

test-all:
	TENSORLY_BACKEND='numpy' pytest -v tensorly
	TENSORLY_BACKEND='cupy' pytest -v tensorly
	TENSORLY_BACKEND='pytorch' pytest -v tensorly
	TENSORLY_BACKEND='mxnet' pytest -v tensorly
	TENSORLY_BACKEND='jax' pytest -v tensorly
	TENSORLY_BACKEND='tensorflow' pytest -v tensorly

test-coverage:
	TENSORLY_BACKEND=$(BACKEND) pytest -v --cov tensorly tensorly

back to top