https://github.com/tensorly/tensorly
Revision 98e44da85ec56ea49bbd97989cfb99d4460f78d4 authored by Jean Kossaifi on 30 September 2020, 19:53:08 UTC, committed by Jean Kossaifi on 30 September 2020, 19:53:08 UTC
2 parent s 984130d + f22b9bf
Raw File
Tip revision: 98e44da85ec56ea49bbd97989cfb99d4460f78d4 authored by Jean Kossaifi on 30 September 2020, 19:53:08 UTC
Merge branch 'master' of https://github.com/tensorly/tensorly
Tip revision: 98e44da
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