https://github.com/tensorly/tensorly
Revision fd2093eb6081672c8fc7bd06d0ffc83c30bc958d authored by Jean Kossaifi on 17 November 2020, 18:51:52 UTC, committed by Jean Kossaifi on 17 November 2020, 18:51:52 UTC
1 parent a8c8b73
Raw File
Tip revision: fd2093eb6081672c8fc7bd06d0ffc83c30bc958d authored by Jean Kossaifi on 17 November 2020, 18:51:52 UTC
doc html: fix footer message for sphinx-gallery
Tip revision: fd2093e
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