1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
# Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
search tensor {
document tensor {
field f1 type tensor(x[]) {
indexing: summary
}
field f2 type tensor<float>(x[2],y[1]) {
indexing: attribute
}
field f3 type tensor<double>(x{}) {
indexing: attribute | summary
}
field f4 type tensor(x[10],y[20]) {
indexing: attribute | summary
}
field f5 type tensor<float>(x[10]) {
indexing: attribute | summary
}
field f6 type float {
indexing: attribute
}
}
rank-profile profile1 {
first-phase {
expression: sum(map(attribute(f4),f(x)(x*x)) + reduce(random(x[2],y[3]), count) * rename(attribute(f4), (x, y), (y, x)))
}
}
rank-profile profile2 {
first-phase {
expression: sum(matmul(attribute(f4), diag(x[2],y[2],z[3]), x))
}
}
rank-profile profile3 {
first-phase {
expression: sum(joinedtensors())
}
function joinedtensors() {
expression: tensor(i[10])(i) * attribute(f4)
}
}
rank-profile profile4 {
first-phase {
expression: sum(attribute(f5))
}
}
rank-profile profile5 {
first-phase {
expression: sum(tensor<float>(d0[1],x[2]):[[attribute(f6), sum(attribute(f5))]])
}
}
rank-profile profile6 {
first-phase {
expression: sum(tensor<float>(d0[1],x[2]):[[attribute(f6), sum(joinedtensors())]])
}
function joinedtensors() {
expression: tensor(i[10])(i) * attribute(f4)
}
}
}
|