The function for tensor value generates this Error: 'false_fn' must be callable
The function for tensor value generates this Error: 'false_fn' must be callable Question: I am creating a function that takes a tensor value and returns the result by applying the following formulation, There are 3 conditions so I am using @tf.functions. def Spa(x): x= tf.convert_to_tensor(float(x), dtype=tf.float32) p= tf.convert_to_tensor(float(0.05), dtype=tf.float32) p_dash=x K = p*logp_dash Ku=K.sum(Ku) Ku= …