Home > other >  Tensorflow DataFormatVecPermute in the () operator how to use
Tensorflow DataFormatVecPermute in the () operator how to use

Time:05-10

Tensorflow DataFormatVecPermute of four parameters of the () operator, how to set up the code I wrote the following:

The import tensorflow as tf
Tf.com pat. V1. Disable_eager_execution ()
A=tf. Constant ([1, 2, 3, 4], name='a')
Sess=tf.com pat. V1. The Session ()
Print (sess. Run (a))
Y=tf. Raw_ops. DataFormatVecPermute (a, 'NHWC', 'NCHW' name='None')
Print (y)
The error is as follows:
TypeError: DataFormatVecPermute only takes keyword args (possible keys: [' x ', 'src_format', 'dst_format', 'name']). For these args as kwargs home.
  • Related