MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / build_graph

Function build_graph

tensorflow/lite/testing/generate_examples_lib.py:294–302  ·  view source on GitHub ↗
(parameters)

Source from the content-addressed store, hash-verified

292 }]
293
294 def build_graph(parameters):
295 input_tensor = tf.placeholder(
296 dtype=tf.float32, name="input", shape=parameters["input_shape"])
297 filter_value = tf.zeros((3, 3, TEST_INPUT_DEPTH, 8), tf.float32)
298 assert_op = tf.assert_greater_equal(input_tensor, input_tensor - 1)
299 with tf.control_dependencies([assert_op]):
300 out = tf.nn.conv2d(input_tensor, filter_value,
301 strides=(1, 1, 1, 1), padding="SAME")
302 return [input_tensor], [out]
303
304 def build_inputs(parameters, sess, inputs, outputs):
305 input_values = create_tensor_data(tf.float32, parameters["input_shape"])

Callers

nothing calls this directly

Calls 15

create_tensor_dataFunction · 0.85
get_tensor_shapesFunction · 0.85
generate_indexFunction · 0.85
tupleFunction · 0.85
get_valid_axisFunction · 0.85
_build_graphFunction · 0.85
relu6Method · 0.80
minimumMethod · 0.80
maximumMethod · 0.80
equalMethod · 0.80
reshapeMethod · 0.80
softmaxMethod · 0.80

Tested by

no test coverage detected