Table Of Contents
Table Of Contents

mxnet.test_utils.set_env_var

mxnet.test_utils.set_env_var(key, val, default_val='')[source]

Set environment variable

Parameters
  • key (str) – Env var to set

  • val (str) – New value assigned to the env var

  • default_val (str, optional) – Default value returned if the env var doesn’t exist

Returns

The value of env var before it is set to the new value

Return type

str