Fix checkfail with -ve perm values in transpose_op.cc
Hi @SuryanarayanaY Can you please check @mihaimaruseac's comments ? Thank you! Done the changes proposed. Hi @SuryanarayanaY Can you please check @mihaimaruseac's [comments](https://github.com/tensorflow/tensorflow/pull/63064#discussion_r1532352208) ? Thank you! This PR is stale because it has been open for 14 days with no activity. It will be closed if no further activity occurs. Thank you. Not stale. The PR has been amended.  Not changed since last approval. It still fails internally
Passing negative values to argument perm in tf.raw_ops.Transpose will cause checkfail and coredump error. Hence validation proposed to check and raise exception.

Ref issue #62995