1 import tensorflow as tf
3 in1_ = tf.compat.v1.placeholder(tf.float32, shape=(2, 3, 4), name="Hole")
4 in2_ = tf.constant(-1.0, dtype=tf.float32, shape=[], name="Hole")
5 in3_ = tf.math.maximum(x=in1_, y=in2_, name="Hole")
6 in4_ = tf.constant(1.0, dtype=tf.float32, shape=[], name="Hole")
7 out_ = tf.math.minimum(x=in3_, y=in4_, name="Relu1")
9 # tf2tfliteV2 will convert .pbtxt model to .tflite with one RELU_N1_TO_1
12 python ../../compiler/tf2tfliteV2/tf2tfliteV2.py \
14 --input_path ./ReluN1To1.pbtxt \
15 --output_path ./ReluN1To1.tflite \