tf.nn.dilation2d Call Error: TypeError: dilation2d_v1() got an unexpected keyword argument ‘data_format’

Error Messages:

Traceback (most recent call last):
  File "Test.py", line 10, in <module>
    c1 = tf.nn.dilation2d(a, b, strides=[1,1,1,1], padding="SAME", data_format="NHWC", dilations=[1,1,1,1])
TypeError: dilation2d_v1() got an unexpected keyword argument 'data_format'

Solution: Delete data_format="NHWC"

Read More: