Skip to content

Commit edd9c3f

Browse files
faizan-mcopybara-github
authored andcommitted
Fix wrong shape used for concrete function
PiperOrigin-RevId: 504395908
1 parent cc23491 commit edd9c3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/en/guide/saved_model.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@
682682
" super(CustomModuleWithOutputName, self).__init__()\n",
683683
" self.v = tf.Variable(1.)\n",
684684
"\n",
685-
" @tf.function(input_signature=[tf.TensorSpec([], tf.float32)])\n",
685+
" @tf.function(input_signature=[tf.TensorSpec(None, tf.float32)])\n",
686686
" def __call__(self, x):\n",
687687
" return {'custom_output_name': x * self.v}\n",
688688
"\n",

0 commit comments

Comments
 (0)