[apache/tvm] [RFC][Tracking Issue] CSI-NN2 Integration (Issue #11506)

2022-05-29 Thread alter-xp
### This issue to track upstreaming progress for CSI-NN2 integration.
- [ ] P1. The CI environment support.
- [ ] P2. The JSON generator with CSI-NN2 support and unit test for Conv2D.
- [ ] p3. Unit tests for Softmax, Pooling, Relu, and Dense.


-- 
Reply to this email directly or view it on GitHub:
https://github.com/apache/tvm/issues/11506
You are receiving this because you are subscribed to this thread.

Message ID: 

[apache/tvm-rfcs] [RFC][Backend] RFC-CSI-NN2-Integration (PR #75)

2022-05-29 Thread alter-xp
Introduce CSI-NN2 Compute Library into TVM to accelerate the inference 
performance of RISC-V CPU with Vector Extension.
You can view, comment on, or merge this pull request online at:

  https://github.com/apache/tvm-rfcs/pull/75

-- Commit Summary --

  * RFC-CSI-NN2-Integration

-- File Changes --

A rfcs/0075_RISC-V_CSI-NN2_Intergration.md (171)

-- Patch Links --

https://github.com/apache/tvm-rfcs/pull/75.patch
https://github.com/apache/tvm-rfcs/pull/75.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/apache/tvm-rfcs/pull/75
You are receiving this because you are subscribed to this thread.

Message ID: 


Re: [apache/tvm-rfcs] [RFC][Backend] RFC-CSI-NN2-Integration (PR #75)

2022-06-06 Thread alter-xp
> This is fantastic, thank you! We're excited to hear about the results for 
> MLPerf. My main comment is mostly concerned about documentation. I'm glad the 
> build instructions are included with the RFC, but I'd like to see the 
> inclusion of documentation about how to configure, build, and use the 
> platform be explicitly updated and included.

Thanks for comments.  we provide a documentation in [PR for 
TVM](https://github.com/apache/tvm/commit/e1f33130e847d6c29b2b4c4e5eba3ca37c89f8cd#diff-330c6f2d08738b9f7e5880b9fe245798559202d161db73243533525100a7d459).
 But I'm not sure whether these contents need to be completely written in RPC

-- 
Reply to this email directly or view it on GitHub:
https://github.com/apache/tvm-rfcs/pull/75#issuecomment-1147389744
You are receiving this because you are subscribed to this thread.

Message ID: 

Re: [apache/tvm-rfcs] [RFC][Backend] RFC-CSI-NN2-Integration (PR #75)

2022-06-10 Thread alter-xp
> ok, then for CI do you plan to e.g. expand our `ci_qemu` Docker image to 
> additionally contain this custom qemu? (this involves committing a change to 
> `docker/`, then pinging a committer to update the version of the image used)

Thanks for advice, we will add it. but I have no experience about this. Is 
there any relevant process? 

-- 
Reply to this email directly or view it on GitHub:
https://github.com/apache/tvm-rfcs/pull/75#issuecomment-1152099008
You are receiving this because you are subscribed to this thread.

Message ID: 

Re: [apache/tvm-rfcs] [RFC][Backend] RFC-CSI-NN2-Integration (PR #75)

2022-06-12 Thread alter-xp
@areusch Thanks a lot. let me update the image.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/apache/tvm-rfcs/pull/75#issuecomment-1153408149
You are receiving this because you are subscribed to this thread.

Message ID: 

Re: [apache/tvm-rfcs] [RFC][Backend] RFC-CSI-NN2-Integration (PR #75)

2022-06-15 Thread alter-xp
@areusch  [a tracking issue](https://github.com/apache/tvm/issues/11506) is 
ready. I will keep updating it.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/apache/tvm-rfcs/pull/75#issuecomment-1157154054
You are receiving this because you are subscribed to this thread.

Message ID: 

Re: [apache/tvm-rfcs] [RFC] Adding initial SVE implementation (#18)

2022-06-30 Thread alter-xp
Thanks for bringing up. this is also very useful on RISC-V. we look forward to 
progress in this regard.



-- 
Reply to this email directly or view it on GitHub:
https://github.com/apache/tvm-rfcs/pull/18#issuecomment-1171880247
You are receiving this because you are subscribed to this thread.

Message ID: 

[Apache TVM Discuss] [Development/RFC] Add some new tensorflow ops

2020-10-20 Thread Alter Xp via Apache TVM Discuss


## Motivation
In order to enrich the support of TF operator and the need of practical work, 
we add 15 operators to TVM.
as follows:
* Expm1, Rint, Softsign, Cumprod, Cumsum
* SegmentMax, SegmentMin, SegmentMean, SegmentPord, SegmentSum
* UnsortedSegmentMax, UnsortedSegmentMin, UnsortedSegmentMean
* UnsortedSegmentPord, UnsortedSegmentSum

## Implementation Details

1. **Expm1**
[https://tensorflow.google.cn/api_docs/python/tf/math/expm1](https://tensorflow.google.cn/api_docs/python/tf/math/expm1)
![image|332x42](upload://7I872nvba07PpiooI5nXDLDkZEO.png) 
2. **Softsign**
[https://tensorflow.google.cn/api_docs/python/tf/nn/softsign](https://tensorflow.google.cn/api_docs/python/tf/nn/softsign)
![image|245x78](upload://j7of3JmLsuPLF6Xu6uN5LZzlVgU.png) 
3. **Rint**
[https://tensorflow.google.cn/api_docs/python/tf/math/rint](https://tensorflow.google.cn/api_docs/python/tf/math/rint)
4. **Cumprod**
[https://tensorflow.google.cn/api_docs/python/tf/math/cumprod](https://tensorflow.google.cn/api_docs/python/tf/math/cumprod)
5. **Cumsum**
[https://tensorflow.google.cn/api_docs/python/tf/math/cumsum](https://tensorflow.google.cn/api_docs/python/tf/math/cumsum)
6. **SegmentMax**
[https://tensorflow.google.cn/api_docs/python/tf/math/segment_max](https://tensorflow.google.cn/api_docs/python/tf/math/segment_max)
7. **SegmentMin**
[https://tensorflow.google.cn/api_docs/python/tf/math/segment_min](https://tensorflow.google.cn/api_docs/python/tf/math/segment_min)
8. **SegmentMean**
[https://tensorflow.google.cn/api_docs/python/tf/math/segment_mean](https://tensorflow.google.cn/api_docs/python/tf/math/segment_mean)
9. **SegmentPord**
[https://tensorflow.google.cn/api_docs/python/tf/math/segment_prod](https://tensorflow.google.cn/api_docs/python/tf/math/segment_prod)
10. **SegmentSum**
[https://tensorflow.google.cn/api_docs/python/tf/math/segment_sum](https://tensorflow.google.cn/api_docs/python/tf/math/segment_sum)
11. **UnsortedSegmentMax**
[https://tensorflow.google.cn/api_docs/python/tf/math/unsorted_segment_max](https://tensorflow.google.cn/api_docs/python/tf/math/unsorted_segment_max)
12. **UnsortedSegmentMin**
[https://tensorflow.google.cn/api_docs/python/tf/math/unsorted_segment_min](https://tensorflow.google.cn/api_docs/python/tf/math/unsorted_segment_min)
13. **UnsortedSegmentMean**
[https://tensorflow.google.cn/api_docs/python/tf/math/unsorted_segment_mean](https://tensorflow.google.cn/api_docs/python/tf/math/unsorted_segment_mean)
14. **UnsortedSegmentProd**
[https://tensorflow.google.cn/api_docs/python/tf/math/unsorted_segment_prod](https://tensorflow.google.cn/api_docs/python/tf/math/unsorted_segment_prod)
15. **UnsortedSegmentSum**
[https://tensorflow.google.cn/api_docs/python/tf/math/unsorted_segment_sum](https://tensorflow.google.cn/api_docs/python/tf/math/unsorted_segment_sum)
 
In TF frontend, exmp1 composed by exp and subtraction. Softsign composed by abs 
and divide. Rint replaced by round.
We provide a new implementation for Cumsum, Cumprod, SegmentMax, SegmentMin, 
SegmentMean, SegmentProd, and SegmentSum operators. For the UnsortedSegment 
operators, they share a set of implementation with Segment operators. The 
conversion is completed in TF frontend.

@Huyuwei @hlu1 @kazum @siju-samuel @FrozenGene





---
[Visit 
Topic](https://discuss.tvm.apache.org/t/add-some-new-tensorflow-ops/8217/1) to 
respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click 
here](https://discuss.tvm.apache.org/email/unsubscribe/4b587271f7819985ea9aea261def6720bb9d668071ef6e3e4595c3cd13ff013b).


[Apache TVM Discuss] [Development/RFC] Add some new tensorflow ops

2020-10-22 Thread Alter Xp via Apache TVM Discuss


I'll make them down into several prs, than send them directly. Thank you.





---
[Visit 
Topic](https://discuss.tvm.apache.org/t/add-some-new-tensorflow-ops/8217/5) to 
respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click 
here](https://discuss.tvm.apache.org/email/unsubscribe/9a92eeb8837e3fe9bc0fcd3339324a8b718566ed96b9d7fe1b263817257160a5).


[Apache TVM Discuss] [Development/RFC] Add some new tensorflow ops

2020-10-22 Thread Alter Xp via Apache TVM Discuss


We have tried using te.scan and te.compute to implement cumsum. But it seems 
that there is no way to use the same formula to adapt to all situations. 
Finally, we implement it with te.extern.





---
[Visit 
Topic](https://discuss.tvm.apache.org/t/add-some-new-tensorflow-ops/8217/6) to 
respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click 
here](https://discuss.tvm.apache.org/email/unsubscribe/4772f85ae998718392067b739704e672b00fc8038804bad1637feb629246865d).


[Apache TVM Discuss] [Development] [Quantization] How to expose 'ndom_scale' 'nclip_min' & 'nclip_max' to TOPI or CodeGen

2021-06-01 Thread Alter Xp via Apache TVM Discuss


Hi, can this part of work be used in the main branch now?





---
[Visit 
Topic](https://discuss.tvm.apache.org/t/quantization-how-to-expose-ndom-scale-nclip-min-nclip-max-to-topi-or-codegen/5393/8)
 to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click 
here](https://discuss.tvm.apache.org/email/unsubscribe/c3e757786dfaa6347dbd82715789195a654b5f8c68067b5f7dbd012162a1eebd).