pytorch/benchmarks/tensorexpr
shmsong 43fe45ab0f [JIT] Add dynamic shape benchmark for NV Fuser (#46107)
Summary:
This PR modifies `benchmarks/tensorexpr`. It follows up[ https://github.com/pytorch/pytorch/issues/44101](https://github.com/pytorch/pytorch/pull/44101) and further supports characterizing fusers with dynamic shape benchmarks. Dynamic shape condition models the use case when the input tensor shape changes in each call to the graph.

Changes include:

Added an auxiliary class `DynamicShape `that provides a simple API for enabling dynamic shapes in existing test cases, example can be found with `DynamicSimpleElementBench`

Created new bench_cls: `DynamicSimpleElementBench`, `DynamicReduce2DInnerBench`, `DynamicReduce2DOuterBench`, and `DynamicLSTM`. They are all dynamic shaped versions of existing benchmarks and examples of enabling dynamic shape with `DynamicShape`.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/46107

Reviewed By: glaringlee

Differential Revision: D24229400

Pulled By: bertmaher

fbshipit-source-id: 889fece5ea87d0f6f6374d31dbe11b1cd1380683
2020-10-09 22:09:21 -07:00
..
__main__.py [JIT] Add dynamic shape benchmark for NV Fuser (#46107) 2020-10-09 22:09:21 -07:00
attention.py [WIP][JIT] Add benchmarking support of NV Fuser with FP16 dtype support (#44101) 2020-09-15 15:10:49 -07:00
benchmark.py [JIT] Add dynamic shape benchmark for NV Fuser (#46107) 2020-10-09 22:09:21 -07:00
broadcast.py [WIP][JIT] Add benchmarking support of NV Fuser with FP16 dtype support (#44101) 2020-09-15 15:10:49 -07:00
conv.py [WIP][JIT] Add benchmarking support of NV Fuser with FP16 dtype support (#44101) 2020-09-15 15:10:49 -07:00
elementwise.py [JIT] Add dynamic shape benchmark for NV Fuser (#46107) 2020-10-09 22:09:21 -07:00
HowToRun.md [TensorExpr] Fix imports in tensorexpr benchmarks. (#35830) 2020-04-01 14:23:33 -07:00
matmul.py [WIP][JIT] Add benchmarking support of NV Fuser with FP16 dtype support (#44101) 2020-09-15 15:10:49 -07:00
normalization.py [WIP][JIT] Add benchmarking support of NV Fuser with FP16 dtype support (#44101) 2020-09-15 15:10:49 -07:00
pooling.py [WIP][JIT] Add benchmarking support of NV Fuser with FP16 dtype support (#44101) 2020-09-15 15:10:49 -07:00
pt_engine.py [WIP][JIT] Add benchmarking support of NV Fuser with FP16 dtype support (#44101) 2020-09-15 15:10:49 -07:00
reduction.py [JIT] Add dynamic shape benchmark for NV Fuser (#46107) 2020-10-09 22:09:21 -07:00
rnn_eltwise.py [JIT] Add dynamic shape benchmark for NV Fuser (#46107) 2020-10-09 22:09:21 -07:00
softmax.py [WIP][JIT] Add benchmarking support of NV Fuser with FP16 dtype support (#44101) 2020-09-15 15:10:49 -07:00
swish.py [WIP][JIT] Add benchmarking support of NV Fuser with FP16 dtype support (#44101) 2020-09-15 15:10:49 -07:00
tensor_engine.py Add tensorexpr benchmarks. (#35064) 2020-03-20 12:01:31 -07:00