Skip to content

Is torch.jit.fork supported inside torch::jit_compile? #563

Is torch.jit.fork supported inside torch::jit_compile?

Is torch.jit.fork supported inside torch::jit_compile? #563

Workflow file for this run

# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
issue_comment:
types: [created]
name: Commands
jobs:
style:
if: startsWith(github.event.comment.body, '/style')
name: style
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/pr-fetch@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: r-lib/actions/setup-r@v2
- uses: r-lib/actions/setup-pandoc@v2
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::roxygen2, any::styler
needs: pr-document
- name: Build lantern and get libtorch
if: matrix.install == 0 || contains( github.event.pull_request.labels.*.name, 'lantern')
run: |
Rscript tools/buildlantern.R
- name: Style and render documents
run: |
set -x
git config --local user.email "actions@github.com"
git config --local user.name "GitHub Actions"
sudo apt-get install -y clang-format perl || true
time ./tools/style.sh || true
find . -type f \( -name 'DESCRIPTION' -o -regex '.*\.\(R\|h\|hpp\|c\|cc\|cpp\|cxx\)' \) \
-not -path "./build/*" \
-not -path "./check/*" \
-not -path "./inst/include/*/*" \
-not -path "./lantern/build/*" \
-not -path "./lantern/headers/build/*" \
-not -path "./revdep/*" \
-not -path "*/gen-*.*" \
-not -path "*/lantern.*" \
-not -path "*/RcppExports.*" \
-printf '%p\n' -exec git add {} \; || true
git commit -m 'Styling and formatting R and C/C++ code' || echo 'No changes to commit'
git add README.md NAMESPACE man/\* */RcppExports.\* || true
git commit -m 'Roxygenize and render documents' || echo 'No changes to commit'
git pull --ff-only || true
git push origin || echo "No changes to commit"
shell: bash
- uses: r-lib/actions/pr-push@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
continue-on-error: true