-
#include "tensorstore/context.h"
-
template <typename Provider>
Result<Resource<Provider>> tensorstore::Context::GetResource(
const Resource<Provider>& resource_spec) const; -
template <typename Provider>
Result<Resource<Provider>> tensorstore::Context::GetResource(
const ::nlohmann::json& json_spec) const; -
template <typename Provider>
Result<Resource<Provider>> tensorstore::Context::GetResource() const; Returns a resource or the default resource for a given provider.
If the nullary overload is called, returns the default resource for
Provider
.- Template Parameters:¶
- typename Provider¶
Context resource provider type. Must be specified when not using the
resource_spec
overload.
- Parameters:¶
- Dchecks:¶
This context is not null.