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

Method GetUncachedExecutor

tensorflow/stream_executor/host/host_platform.cc:71–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71port::StatusOr<std::unique_ptr<StreamExecutor>>
72HostPlatform::GetUncachedExecutor(const StreamExecutorConfig& config) {
73 auto executor = absl::make_unique<StreamExecutor>(
74 this, absl::make_unique<HostExecutor>(config.plugin_config),
75 config.ordinal);
76 auto init_status = executor->Init(config.device_options);
77 if (!init_status.ok()) {
78 return port::Status(
79 port::error::INTERNAL,
80 absl::StrFormat(
81 "failed initializing StreamExecutor for device ordinal %d: %s",
82 config.ordinal, init_status.ToString().c_str()));
83 }
84
85 return std::move(executor);
86}
87
88void HostPlatform::RegisterTraceListener(
89 std::unique_ptr<TraceListener> listener) {

Callers 1

NewStreamExecutorMethod · 0.45

Calls 5

c_strMethod · 0.80
StatusEnum · 0.50
InitMethod · 0.45
okMethod · 0.45
ToStringMethod · 0.45

Tested by 1

NewStreamExecutorMethod · 0.36