Skip to content

Commit

Permalink
Merge pull request #2 from XuehaoSun/test_app
Browse files Browse the repository at this point in the history
for test
  • Loading branch information
XuehaoSun authored Feb 4, 2024
2 parents c6f9cca + 07c508a commit 5abfac4
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/pr_agent.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
on:
pull_request:
issue_comment:
jobs:
pr_agent_job:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
contents: write
name: Run pr agent on every pull request, respond to user comments
steps:
- name: PR Agent action step
id: pragent
uses: Codium-ai/pr-agent@main
env:
OPENAI_KEY: ${{ secrets.OPENAI_KEY }}
GITHUB_TOKEN: ${{ secrets.GHA_TOKEN }}
9 changes: 9 additions & 0 deletions neural_compressor/model/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,15 @@
}


def test(x):
return x**2 + 1


import random

test(random.randint(1, 1000))


def get_model_fwk_name(model):
"""Detect the input model belongs to which framework.
Expand Down

0 comments on commit 5abfac4

Please sign in to comment.