https://github.com/tensorly/tensorly
Revision af2fb209be9a032ea39a409d9de53378e25baabd authored by Cyrillus on 26 July 2022, 22:21:19 UTC, committed by Cyrillus on 26 July 2022, 22:21:19 UTC
1 parent 39281d1
Raw File
Tip revision: af2fb209be9a032ea39a409d9de53378e25baabd authored by Cyrillus on 26 July 2022, 22:21:19 UTC
Use lstsq() instead of pinv(); use f-string; remove tile()
Tip revision: af2fb20
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