summaryrefslogtreecommitdiff
path: root/res/TensorFlowTests/NET_0021/test.pbtxt
blob: b1eadccd9a330a57b128d4ab3164795b38aceb3a (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
# HOW TO GENERATE:
#
#  import tensorflow as tf
#  value = tf.placeholder(dtype=tf.float32, shape=[1, 7, 7, 1], name='placeholder')
#  output = tf.nn.max_pool(value, [1, 3, 3, 1], [1, 2, 2, 1], 'VALID', name='maxpool2d')
#  tf.get_default_graph().as_graph_def()
#
# NOTE 1. The output shape is 1x3x3x1
#
# >>> tf.graph_util.tensor_shape_from_node_def_name(tf.get_default_graph(), 'maxpool2d')
# TensorShape([Dimension(1), Dimension(3), Dimension(3), Dimension(1)])
#
# NOTE 2. All the MaxPool nodes in inception v3 2018.04.27 use this configuration.
# - InceptionV3/InceptionV3/MaxPool_3a_3x3/MaxPool
# - InceptionV3/InceptionV3/MaxPool_5a_3x3/MaxPool
# - InceptionV3/InceptionV3/Mixed_6a/Branch_2/MaxPool_1a_3x3/MaxPool
# - InceptionV3/InceptionV3/Mixed_7a/Branch_2/MaxPool_1a_3x3/MaxPool
node {
  name: "placeholder"
  op: "Placeholder"
  attr {
    key: "dtype"
    value { type: DT_FLOAT }
  }
  attr {
    key: "shape"
    value {
      shape {
        dim { size: 1 }
        dim { size: 7 }
        dim { size: 7 }
        dim { size: 1 }
      }
    }
  }
}
node {
  name: "maxpool2d"
  op: "MaxPool"
  input: "placeholder"
  attr {
    key: "T"
    value { type: DT_FLOAT }
  }
  attr {
    key: "data_format"
    value { s: "NHWC" }
  }
  attr {
    key: "ksize"
    value {
      list { i: 1 i: 3 i: 3 i: 1 }
    }
  }
  attr {
    key: "padding"
    value { s: "VALID" }
  }
  attr {
    key: "strides"
    value {
      list { i: 1 i: 2 i: 2 i: 1 }
    }
  }
}