torch_mlu/csrc/aten/core/generator_impl.cpp
static void initMLUGenVector() {
  num_mlus = device_count();
  mlu_gens_init_flag.resize(num_mlus);
  default_gens_mlu.resize(num_mlus);
  is_floating_device = Global::instance().isUsingFloatingDevice();
}
/*
* Populates the global variables related to MLU generators
* Warning: this function must only be called once!
*/
Populates the global variables related to MLU generators
Warning: this function must only be called once!
Populates the global variables related to MLU generators Warning : this function must only be called once!
static void initMLUGenVector() {
  num_mlus = device_count();
  mlu_gens_init_flag.resize(num_mlus);
  default_gens_mlu.resize(num_mlus);
  is_floating_device = Global::instance().isUsingFloatingDevice();
}
static void initMLUGenVector ( ) { num_mlus = device_count ( ) ; mlu_gens_init_flag . resize ( num_mlus ) ; default_gens_mlu . resize ( num_mlus ) ; is_floating_device = Global :: instance ( ) . isUsingFloatingDevice ( ) ; }
Populates the global variables related to MLU generators
Warning: this function must only be called once!
Populates the global variables related to MLU generators Warning : this function must only be called once!