https://github.com/tensorly/tensorly
Revision f22b9bf7a9979cbbefbeba042f12c3fbc2f96056 authored by Jean Kossaifi on 09 September 2020, 15:02:28 UTC, committed by GitHub on 09 September 2020, 15:02:28 UTC
2 parent s 34fdee5 + 31cc9b4
Raw File
Tip revision: f22b9bf7a9979cbbefbeba042f12c3fbc2f96056 authored by Jean Kossaifi on 09 September 2020, 15:02:28 UTC
Merge pull request #192 from aarmey/patch-1
Tip revision: f22b9bf
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