Refactor BitcastOp_Create and BitcastOp_Compute 
Hi @krittapat-canik Can you please check @cantonios's comments and keep us posted ? Thank you! Hi @krittapat-canik Can you please check @cantonios's comments and keep us posted ? 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. Hi @krittapat-canik Any update on this PR? Please. Thank you! No response from author, and I doubt this will actually save anything significant in practice.
refactorings BitcastOp_Create and BitcastOp_Compute for improved memory usage and performance.

For BitcastOp_Create, I've made a few changes that will help reduce memory usage. Specifically, I've used a single TF_Status object for error checking and memory allocation, which should help reduce the overall memory footprint of this function. I've also optimized the calculation of check_size, which will eliminate unnecessary computation and help reduce memory usage even further.

In BitcastOp_Compute, I've reordered variable initialization to reduce the overall memory footprint. I've also replaced the std::ostringstream object used for building error messages with a char buffer. This change will make error handling more efficient and help reduce memory usage for each function call.

I've tested these changes to ensure that they preserve the previous behavior and have no functional impact. Overall, I believe that these refactorings will help improve the performance and memory usage of these functions, leading to a better user experience. Thanks for taking the time to review my pull request, and I'm looking forward to your feedback!