https://github.com/tensorly/tensorly
Revision 99572fea4fcb6355fdda0988201a2c9a4e7e9bc5 authored by Jean Kossaifi on 23 April 2019, 13:35:47 UTC, committed by Jean Kossaifi on 23 April 2019, 13:35:47 UTC
Always carry weights around, e.g. kruskal_tensor = (weights, factors) always
1 parent b1f9077
Tip revision: 99572fea4fcb6355fdda0988201a2c9a4e7e9bc5 authored by Jean Kossaifi on 23 April 2019, 13:35:47 UTC
FIX kruskal_tensor for sparse_backend
FIX kruskal_tensor for sparse_backend
Tip revision: 99572fe
deploy_docs.sh
#!/bin/bash
# Inspired from scikit-image
# https://github.com/scikit-image/scikit-image/blob/master/tools/travis/deploy_docs.sh
if [[ $TRAVIS_PULL_REQUEST == false && $TRAVIS_BRANCH == "master" &&
$DEPLOY_DOCS == 1 ]]
then
echo "BUILDIG DOC ANND PUSHING TO WEBSITE"
(
git config --global user.email "admin@tensorly.org"
git config --global user.name "Travis"
# Installed the dependencies
echo "-- Installing dependencies"
conda install matplotlib Pillow sphinx
pip install slimit rcssmin
# cd to the doc folder and build the doc
echo "-- Building doc"
cd doc
make html
cd ..
echo "-- Cloning doc repo"
git clone --quiet https://github.com/tensorly/tensorly.github.io doc_folder
cd doc_folder
git rm -r dev/*
cp -r ../doc/_build/html/* dev/
echo "Pushinng to git"
git add dev
git commit -m "Travis auto-update"
git push --force --quiet "https://${gh_token}@github.com/tensorly/tensorly.github.io" > /dev/null 2>&1
)
else
echo "NOT BUILDIGN DOC -- will only push docs from master and if DEPLOY_DOCS == 1"
fi
Computing file changes ...