| 75 | bool IsVerbose() { return getenv("VERBOSE") != nullptr; } |
| 76 | |
| 77 | void Log(const std::string& msg) { |
| 78 | if (IsVerbose()) { |
| 79 | std::cerr << msg << std::endl; |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | // Needs to be kept in sync with PrimitiveType in xla_data.proto. |
| 84 | enum PrimitiveType { |