https://github.com/tensorly/tensorly
Revision 398c3e6cc46dbd5ecfed816231ef3d6157a90c30 authored by kingsj0405 on 04 December 2019, 12:17:36 UTC, committed by kingsj0405 on 04 December 2019, 12:19:15 UTC
1 parent 4fd099c
Raw File
Tip revision: 398c3e6cc46dbd5ecfed816231ef3d6157a90c30 authored by kingsj0405 on 04 December 2019, 12:17:36 UTC
Refactor code to pass the tests
Tip revision: 398c3e6
Makefile
# Automate testing etc
BACKEND?='numpy'

all: install test

install:
	pip install -e .

test:
	TENSORLY_BACKEND=$(BACKEND) pytest -v tensorly

test-all:
	TENSORLY_BACKEND='mxnet' pytest -v tensorly
	TENSORLY_BACKEND='numpy' pytest -v tensorly
	TENSORLY_BACKEND='pytorch' pytest -v tensorly

test-coverage:
	TENSORLY_BACKEND=$(BACKEND) pytest -v --cov tensorly tensorly

back to top