Skip to content

Commit

Permalink
add pytorch
Browse files Browse the repository at this point in the history
  • Loading branch information
raucha committed Sep 23, 2023
1 parent 612dbc5 commit dacbcb5
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ jobs:
strategy:
matrix:
features:
- color
- hello
- pytorch
baseImage:
- debian:latest
- ubuntu:latest
Expand All @@ -34,8 +33,7 @@ jobs:
strategy:
matrix:
features:
- color
- hello
- pytorch
steps:
- uses: actions/checkout@v3

Expand Down
2 changes: 2 additions & 0 deletions src/pytorch/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

# pythoch feature
12 changes: 12 additions & 0 deletions src/pytorch/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "Pytorch",
"id": "pytorch",
"version": "1.0.0",
"description": "pytorch feature",
"options": {
},
"installsAfter": [
"ghcr.io/devcontainers/features/common-utils",
"ghcr.io/devcontainers/features/python"
]
}
18 changes: 18 additions & 0 deletions src/pytorch/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/sh
set -e

# check_packages() {
# if ! dpkg -s "$@" > /dev/null 2>&1; then
# if [ "$(find /var/lib/apt/lists/* | wc -l)" = "0" ]; then
# echo "Running apt-get update..."
# apt-get update -y
# fi
# apt-get -y install --no-install-recommends "$@"
# fi
# }

echo "Activating feature 'pytorch'"

pip install pytorch

echo "pytorch installed! "

0 comments on commit dacbcb5

Please sign in to comment.