https://github.com/tensorly/tensorly
Revision 80b13c0497863a917b8205a21564fcd15b50611c authored by Jean Kossaifi on 16 August 2021, 18:57:16 UTC, committed by GitHub on 16 August 2021, 18:57:16 UTC
Gradient of the difference norm between a CP and dense tensor
2 parent s 8dfd4ae + d6a9ddb
Raw File
Tip revision: 80b13c0497863a917b8205a21564fcd15b50611c authored by Jean Kossaifi on 16 August 2021, 18:57:16 UTC
Merge pull request #294 from aarmey/CP-lstsq-grad
Tip revision: 80b13c0
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