summaryrefslogtreecommitdiff
path: root/res/TensorFlowTests/UNIT_Mean_000/test.pbtxt
blob: 8a9f7848f6a5a63f4241051b645f4319b27b8653 (plain)
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
# Reference Python code:
#
# import tensorflow as tf
#
# inp = tf.placeholder(tf.float32, [1,3,3,2])
# mean = tf.math.reduce_mean(inp, keepdims=True, axis=[1,2])
#
# print(tf.get_default_graph().as_graph_def())
#
# WARNING! Below GraphDef is modified to make it easy to read
node {
  name: "Placeholder"
  op: "Placeholder"
  attr {
    key: "dtype"
    value { type: DT_FLOAT }
  }
  attr {
    key: "shape"
    value {
      shape {
        dim { size: 1 }
        dim { size: 3 }
        dim { size: 3 }
        dim { size: 2 }
      }
    }
  }
}
node {
  name: "Mean/reduction_indices"
  op: "Const"
  attr {
    key: "dtype"
    value { type: DT_INT32 }
  }
  attr {
    key: "value"
    value {
      tensor {
        dtype: DT_INT32
        tensor_shape {
          dim { size: 2 }
        }
        int_val: 1
        int_val: 2
      }
    }
  }
}
node {
  name: "Mean"
  op: "Mean"
  input: "Placeholder"
  input: "Mean/reduction_indices"
  attr {
    key: "T"
    value { type: DT_FLOAT }
  }
  attr {
    key: "Tidx"
    value { type: DT_INT32 }
  }
  attr {
    key: "keep_dims"
    value { b: true }
  }
}