Skip to content

[TOPI] Relu and schedule elemwise#390

Merged
tqchen merged 5 commits intoapache:masterfrom
Laurawly:dev
Aug 27, 2017
Merged

[TOPI] Relu and schedule elemwise#390
tqchen merged 5 commits intoapache:masterfrom
Laurawly:dev

Conversation

@Laurawly
Copy link
Copy Markdown
Contributor

No description provided.

Comment thread topi/python/topi/cuda/relu.py Outdated
s[x].bind(bx, tvm.thread_axis("blockIdx.x"))
s[x].bind(tx, tvm.thread_axis("threadIdx.x"))

tvm.schedule.AutoInlineInjective(s)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do this to right after schedule is created

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change it to schedule ewise, because it should work for all element wide activations

Comment thread topi/python/topi/nn/relu.py Outdated
----------
data : tvm.Tensor
2-D input data

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nd input datab

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is not restricted to 2 d

Comment thread topi/python/topi/testing/relu_python.py Outdated
-------
output_np : numpy.ndarray
2-D output with same shape
"""
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since it is one line, don't have to include it here, just write in python

@tqchen
Copy link
Copy Markdown
Member

tqchen commented Aug 27, 2017

Seems you didn't check in schedule elemwise

@tqchen
Copy link
Copy Markdown
Member

tqchen commented Aug 27, 2017

Check error in http://mode-gpu.cs.washington.edu:8080/blue/organizations/jenkins/dmlc%2Ftvm/detail/PR-390/3/pipeline

relu should simply be taged as ewise(without relu)

@tqchen tqchen changed the title relu activation migrated to topi [TOPI] Relu and schedule elemwise Aug 27, 2017
@tqchen tqchen merged commit efafa1a into apache:master Aug 27, 2017
tqchen added a commit to tqchen/tvm that referenced this pull request May 26, 2018
tqchen added a commit that referenced this pull request May 29, 2018
tqchen added a commit to tqchen/tvm that referenced this pull request Jul 6, 2018
sergei-mironov pushed a commit to sergei-mironov/tvm that referenced this pull request Aug 8, 2018
junrushao pushed a commit to junrushao/tvm that referenced this pull request Feb 8, 2023
Added two util functions in `nested_msg.h`:
- `MapToNestedMsgBySInfo`: map Expr to NestedMsg according to StructInfo. If the Expr is not a TupleNode but its StructInfo is TupleStructInfo (for example, Expr is a Var assigned to by a Tuple), it will add TupleGetItem nodes
- `NestedMsgToExpr`: map NestedMsg back to Expr. Tuple nodes will be created.
mbaret pushed a commit to mbaret/tvm that referenced this pull request Feb 13, 2023
Added two util functions in `nested_msg.h`:
- `MapToNestedMsgBySInfo`: map Expr to NestedMsg according to StructInfo. If the Expr is not a TupleNode but its StructInfo is TupleStructInfo (for example, Expr is a Var assigned to by a Tuple), it will add TupleGetItem nodes
- `NestedMsgToExpr`: map NestedMsg back to Expr. Tuple nodes will be created.
yelite pushed a commit to yelite/tvm that referenced this pull request Feb 17, 2023
Added two util functions in `nested_msg.h`:
- `MapToNestedMsgBySInfo`: map Expr to NestedMsg according to StructInfo. If the Expr is not a TupleNode but its StructInfo is TupleStructInfo (for example, Expr is a Var assigned to by a Tuple), it will add TupleGetItem nodes
- `NestedMsgToExpr`: map NestedMsg back to Expr. Tuple nodes will be created.
tlopex pushed a commit to tlopex/tvm that referenced this pull request Mar 9, 2026
* improve perf

* Revert "[CUDA] Update FlashInfer JIT integration (apache#18353)"

This reverts commit cc5d5822b34aca14c6a3752731288138ce3868df.

* fix

* fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants