https://github.com/tensorly/tensorly
Revision c9b9d180ed00e614307aecca2d9998769df66d98 authored by Jean Kossaifi on 11 October 2021, 15:22:01 UTC, committed by Jean Kossaifi on 11 October 2021, 15:22:01 UTC
1 parent 44fe990
Raw File
Tip revision: c9b9d180ed00e614307aecca2d9998769df66d98 authored by Jean Kossaifi on 11 October 2021, 15:22:01 UTC
Missing base_tenalg
Tip revision: c9b9d18
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