https://github.com/tensorly/tensorly
Raw File
Tip revision: a21f84422876fb8b4c0d07ef116740b7cf9e8252 authored by Aaron Meyer on 11 April 2024, 17:54:34 UTC
Merge pull request #551 from cohenjer/normalize_tucker
Tip revision: a21f844
Makefile
# Automate testing etc
BACKEND?='numpy'

.PHONY: all install debug test test-all test-coverage

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='jax' pytest -v tensorly
	TENSORLY_BACKEND='tensorflow' pytest -v tensorly

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

back to top