https://github.com/tensorly/tensorly
Revision 526e7d5e0754b7d6558e200509069e5958fa8bb5 authored by Jean Kossaifi on 07 December 2020, 14:12:51 UTC, committed by Jean Kossaifi on 07 December 2020, 14:12:51 UTC
1 parent 75ddd76
Raw File
Tip revision: 526e7d5e0754b7d6558e200509069e5958fa8bb5 authored by Jean Kossaifi on 07 December 2020, 14:12:51 UTC
TensorFlow fix
Tip revision: 526e7d5
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