NVIDIA / tensorflow

An Open Source Machine Learning Framework for Everyone
https://developer.nvidia.com/deep-learning-frameworks
Apache License 2.0
962 stars 144 forks source link

removed unused packages and nodes of graph #108

Open dhanushk-offl opened 4 months ago

dhanushk-offl commented 4 months ago

This commit enhances the reliability, error handling, and documentation of the provided code without altering its functionality. Changes include:

Improved error messages for better clarity:

  1. Raised exceptions with informative messages for cases where input graph files are missing or required arguments are not provided.
  2. Clarified error message for when a node name appears to refer to a Tensor instead of an Operation.
  3. Refactored variable names and added docstrings to functions to improve code readability and maintainability.