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

Method GetSymbol

tensorflow/stream_executor/stream_executor_pimpl.h:852–860  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

850
851template <typename T>
852inline port::StatusOr<DeviceMemory<T>> StreamExecutor::GetSymbol(
853 const string &symbol_name, ModuleHandle module_handle) {
854 port::StatusOr<DeviceMemoryBase> untyped_symbol =
855 GetUntypedSymbol(symbol_name, module_handle);
856 if (!untyped_symbol.ok()) {
857 return untyped_symbol.status();
858 }
859 return DeviceMemory<T>(untyped_symbol.ValueOrDie());
860}
861
862template <typename ElemT>
863ScopedDeviceMemory<ElemT>::ScopedDeviceMemory(StreamExecutor *parent,

Callers

nothing calls this directly

Calls 2

okMethod · 0.45
statusMethod · 0.45

Tested by

no test coverage detected