https://github.com/tensorly/tensorly
Revision 09e22b8e63dc80433403b6187e980bc785cb2a64 authored by Jean Kossaifi on 11 October 2021, 15:22:28 UTC, committed by Jean Kossaifi on 11 October 2021, 15:22:28 UTC
1 parent c9b9d18
Raw File
Tip revision: 09e22b8e63dc80433403b6187e980bc785cb2a64 authored by Jean Kossaifi on 11 October 2021, 15:22:28 UTC
Tenalg: update manager + add einsum HOM
Tip revision: 09e22b8
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