https://github.com/tensorly/tensorly
Revision 7a39c3e89a34dfcc9174adb3373a790084c705ab authored by Aaron Meyer on 08 July 2021, 17:18:45 UTC, committed by Aaron Meyer on 08 July 2021, 17:18:45 UTC
1 parent cf14bdb
Raw File
Tip revision: 7a39c3e89a34dfcc9174adb3373a790084c705ab authored by Aaron Meyer on 08 July 2021, 17:18:45 UTC
Initial changes to work on all backends
Tip revision: 7a39c3e
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