MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / AsRng

Method AsRng

tensorflow/stream_executor/stream_executor_pimpl.cc:499–507  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

497}
498
499rng::RngSupport *StreamExecutor::AsRng() {
500 absl::MutexLock lock(&mu_);
501 if (rng_ != nullptr) {
502 return rng_.get();
503 }
504
505 rng_.reset(implementation_->CreateRng());
506 return rng_.get();
507}
508
509port::Status StreamExecutor::Launch(Stream *stream,
510 const ThreadDim &thread_dims,

Callers 1

stream.ccFile · 0.80

Calls 3

getMethod · 0.45
resetMethod · 0.45
CreateRngMethod · 0.45

Tested by

no test coverage detected