https://github.com/tensorly/tensorly
Revision 394d62fb5c162dd4f859bc142fc266d19fb2ba8e authored by Lili on 09 November 2022, 16:24:35 UTC, committed by Lili on 09 November 2022, 16:24:35 UTC
1 parent f741809
Raw File
Tip revision: 394d62fb5c162dd4f859bc142fc266d19fb2ba8e authored by Lili on 09 November 2022, 16:24:35 UTC
reformat using black
Tip revision: 394d62f
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