Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 29 additions & 3 deletions .github/workflows/out-of-tree-test-infra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,49 @@ on:

jobs:
dispatch-event:
if: github.repository_owner == 'pytorch'
if: github.repository_owner == 'cosdt'
name: Dispatch events to the out-of-tree test infra repo
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Print event info
run: |
echo "${{ toJson(github.event.pull_request) }}"

- name: Create a repository dispatch event
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.COSDT_BOT_TOKEN }}
repository: cosdt/pytorch-integration-tests
event-type: pytorch-event
event-type: pytorch-pr-event
client-payload: |-
{
"owner": "${{ github.repository_owner }}",
"repo": "${{ github.repository }}",
"event_name": "${{ github.event_name }}",
"pull_request": "${{ toJson(github.event.pull_request) }}"
"pull_request": {
"title": "${{ github.event.pull_request.title }}",
"base": {
"ref": "${{ github.event.pull_request.base.ref }}",
"repo": {
"name": "${{ github.event.pull_request.base.repo.name }}",
"full_name": "${{ github.event.pull_request.base.repo.full_name }}",
"owner": {
"login": "${{ github.event.pull_request.base.repo.owner.login }}"
}
}
},
"head": {
"ref": "${{ github.event.pull_request.head.ref }}",
"repo": {
"name": "${{ github.event.pull_request.head.repo.name }}",
"full_name": "${{ github.event.pull_request.head.repo.full_name }}",
"owner": {
"login": "${{ github.event.pull_request.head.repo.owner.login }}"
}
}
}
}
}
5 changes: 5 additions & 0 deletions torch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2758,3 +2758,8 @@ def _as_tensor_fullprec(t):
return torch.as_tensor(t, dtype=torch.int64)
else:
return torch.as_tensor(t)


def dummpy_func():
pass

Loading