Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Commit 6886feb

Browse files
authored
Added sql code for clean view (#86)
1 parent cc6e9e4 commit 6886feb

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

db_tools/create_view.sql

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
CREATE OR REPLACE VIEW torchmlir_benchmark_view AS
2+
SELECT
3+
id,
4+
REPLACE(REPLACE(CONCAT(host, '-', compiler, '-', dtype, '-', tag), 'torchscript', 'ts'), '-ci', '') AS backend,
5+
host,
6+
device,
7+
compiler,
8+
dtype,
9+
tag,
10+
benchmark,
11+
benchmark_desc,
12+
samples_per_s AS items_per_s,
13+
flops_per_sample,
14+
flops_per_sample * samples_per_s / 1e12 AS tflops,
15+
date
16+
FROM torchmlir_benchmark;

0 commit comments

Comments
 (0)