https://github.com/tensorly/tensorly
Revision 244c94b0533172c4ee223305b6a6dad4c53a3422 authored by Jean Kossaifi on 10 March 2021, 23:08:15 UTC, committed by Jean Kossaifi on 10 March 2021, 23:08:15 UTC
1 parent cc1764f
Raw File
Tip revision: 244c94b0533172c4ee223305b6a6dad4c53a3422 authored by Jean Kossaifi on 10 March 2021, 23:08:15 UTC
Tests: separate backend and core fun + speed test for SVD
Tip revision: 244c94b
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