correction typeError
diff --git a/tensorflow/python/ops/nn_ops.py b/tensorflow/python/ops/nn_ops.py
index e977892..77c7df2 100644
--- a/tensorflow/python/ops/nn_ops.py
+++ b/tensorflow/python/ops/nn_ops.py
@@ -295,7 +295,7 @@
     A `Tensor`. Has the same type as `input`.
   """
   if data_format != "NHWC":
-    raise ValueError("Data formats other than NHWC are not yet supported")
+    raise TypeError("Data formats other than NHWC are not yet supported")
 
   return gen_nn_ops.dilation2d(input=input,
                                filter=filters,