https://github.com/tensorly/tensorly
Tip revision: 63fc5c5d4d3352a79f4c1a1a725e767ae6dc8734 authored by Aaron Meyer on 03 April 2024, 14:09:47 UTC
Merge pull request #538 from braun-steven/main
Merge pull request #538 from braun-steven/main
Tip revision: 63fc5c5
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