Imported Upstream version 1.9.0
[platform/core/ml/nnfw.git] / res / TensorFlowPythonExamples / examples / PadV2 / __init__.py
1 import tensorflow as tf
2 import numpy as np
3
4 input_ = tf.compat.v1.placeholder(shape=[1, 1, 1, 1], dtype=tf.float32)
5 paddings_ = tf.compat.v1.constant(
6     np.array([[1, 1], [2, 2], [3, 3], [4, 4]], dtype=np.int32))
7 constant_values_ = tf.compat.v1.constant(1, shape=(), dtype=tf.float32)
8 op_ = tf.compat.v1.pad(input_, paddings=paddings_, constant_values=constant_values_)