是否可以为python对象参数指定输入签名?

时间:2019-09-28 20:24:03

标签: python tensorflow2.0

例如:

@tf.function(input_signature=[
    PYTHON_SIGNATURE,
    tf.TensorSpec(
        shape=[None, None], 
        dtype=tf.float32)
])
def some_computation(python_object, tf_object):
   ... perform some computation involving python_object and tf_object.

我要用什么代替PYTHON_SIGNATURE?

0 个答案:

没有答案