Template Function tvm::support::GetEnv

Template Function tvm::support::GetEnv#

Function Documentation#

template<typename T>
inline T tvm::support::GetEnv(const char *key, T default_value)#

Get environment variable with a typed default value.

Template Parameters:

T – The value type (must be arithmetic or std::string).

Parameters:
  • key – The environment variable name.

  • default_value – The value to return if the variable is unset or empty.

Returns:

The parsed value or the default.