https://github.com/tensorly/tensorly
Revision ad113ab83d029bf8dbe3c98241d25bf09b1ff89b authored by taylorpatti on 12 March 2021, 01:19:03 UTC, committed by GitHub on 12 March 2021, 01:19:03 UTC
2 parent s c9c3ffb + 25a25dc
Raw File
Tip revision: ad113ab83d029bf8dbe3c98241d25bf09b1ff89b authored by taylorpatti on 12 March 2021, 01:19:03 UTC
Merge branch 'main' into main
Tip revision: ad113ab
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