0638b9c86cfec273b2e5799aea281ffa74d9161d,models/official/detection/serving/inputs.py,,raw_image_tensor_input,#,59

Before Change


      dtype=tf.float32,
      shape=(batch_size, image_height, image_width, 3))

  image_info_per_image = [
      [image_height, image_width],
      [image_height, image_width],
      [1.0, 1.0],
      [0.0, 0.0]]
  if batch_size == 1:
    images_info = tf.constant([image_info_per_image], dtype=tf.float32)
  else:
    images_info = tf.constant(

After Change


      [image_shape,
       image_shape,
       tf.constant([1.0, 1.0], dtype=tf.float32),
       tf.constant([0.0, 0.0], dtype=tf.float32)])
  if batch_size == 1:
    images_info = tf.expand_dims(image_info_per_image, axis=0)
  else:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: tensorflow/tpu
Commit Name: 0638b9c86cfec273b2e5799aea281ffa74d9161d
Time: 2020-05-12
Author: pengchong@google.com
File Name: models/official/detection/serving/inputs.py
Class Name:
Method Name: raw_image_tensor_input


Project Name: taehoonlee/tensornets
Commit Name: b9927f30cb9c92040c30d0fe8c735d8baea167b2
Time: 2019-03-13
Author: me@taehoonlee.com
File Name: tensornets/layers.py
Class Name:
Method Name: gconvbn


Project Name: XifengGuo/CapsNet-Keras
Commit Name: 5cb43a9498315a16412cba20a59e6e76f9721b7b
Time: 2017-10-31
Author: guoxifeng1990@163.com
File Name: capsulelayers.py
Class Name: CapsuleLayer
Method Name: call