https://github.com/tensorly/tensorly
Revision a8c8b7399ee046b6ead783de472c2160cb6666ad authored by Jean Kossaifi on 17 November 2020, 18:51:08 UTC, committed by Jean Kossaifi on 17 November 2020, 18:51:08 UTC
1 parent bf5f757
Raw File
Tip revision: a8c8b7399ee046b6ead783de472c2160cb6666ad authored by Jean Kossaifi on 17 November 2020, 18:51:08 UTC
Credit TensorLy developers on website footer
Tip revision: a8c8b73
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