https://github.com/tensorly/tensorly
Revision e59bc181ffd7e6d858abc5333f7bb890ee71d29e authored by Jean Kossaifi on 31 October 2022, 22:15:29 UTC, committed by GitHub on 31 October 2022, 22:15:29 UTC
2 parent s a0d5862 + 49d97ec
Raw File
Tip revision: e59bc181ffd7e6d858abc5333f7bb890ee71d29e authored by Jean Kossaifi on 31 October 2022, 22:15:29 UTC
Merge pull request #454 from JeanKossaifi/tt_svd
Tip revision: e59bc18
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