torch_mlu/csrc/aten/core/generator_impl.cpp
void* MLUGeneratorImpl::get_state_ptr() const {
  // update the state tensor.
  auto state_impl = getMluTensorImpl(state_);
  auto state_ptr = state_impl->cnnlMalloc();
  TORCH_CHECK(state_ptr, "the state point is nullptr, please init state before calling its point");
  return state_ptr;
}
/**
 * get_state_ptr
 *
 * See Note [Acquire lock when using random generators]
  */
get_state_ptr
See Note [Acquire lock when using random generators]
get_state_ptr See Note [ Acquire lock when using random generators ]
void* MLUGeneratorImpl::get_state_ptr() const {
  auto state_impl = getMluTensorImpl(state_);
  auto state_ptr = state_impl->cnnlMalloc();
  TORCH_CHECK(state_ptr, "the state point is nullptr, please init state before calling its point");
  return state_ptr;
}
void * MLUGeneratorImpl :: get_state_ptr ( ) const { auto state_impl = getMluTensorImpl ( state_ ) ; auto state_ptr = state_impl -> cnnlMalloc ( ) ; TORCH_CHECK ( state_ptr , " " ) ; return state_ptr ; }
get_state_ptr
 See Note [Acquire lock when using random generators]
get_state_ptr See Note [ Acquire lock when using random generators ]
// update the state tensor.