pub fn default_eager_ctx() -> Result<Arc<EagerRuntime>, EagerContextError>Expand description
Return the optional process-global eager context used by convenience APIs.
§Errors
Returns EagerContextError::Registration when eager runtime
initialization fails.
§Examples
use std::sync::Arc;
use tensor4all_tensorbackend::default_eager_ctx;
let first = default_eager_ctx().unwrap();
let second = default_eager_ctx().unwrap();
assert!(Arc::ptr_eq(&first, &second));