https://github.com/tensorly/tensorly
Revision 4736d5affde1a38182b085fe0b2ba01c4ddfeb0a authored by Jean Kossaifi on 25 August 2021, 10:49:38 UTC, committed by GitHub on 25 August 2021, 10:49:38 UTC
Fix svd for pytorch < 1.8
Tip revision: 4736d5affde1a38182b085fe0b2ba01c4ddfeb0a authored by Jean Kossaifi on 25 August 2021, 10:49:38 UTC
Merge pull request #312 from merajhashemi/mh-pytorchsvd
Merge pull request #312 from merajhashemi/mh-pytorchsvd
Tip revision: 4736d5a
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
Computing file changes ...