pub struct ProfiledScirs2Exec { /* private fields */ }Expand description
Profiling-enabled executor wrapper
Implementations§
Source§impl ProfiledScirs2Exec
impl ProfiledScirs2Exec
Sourcepub fn with_memory_pool() -> Self
pub fn with_memory_pool() -> Self
Create with memory pooling enabled
Sourcepub fn executor(&self) -> &Scirs2Exec
pub fn executor(&self) -> &Scirs2Exec
Access the underlying executor
Sourcepub fn executor_mut(&mut self) -> &mut Scirs2Exec
pub fn executor_mut(&mut self) -> &mut Scirs2Exec
Access the underlying executor mutably
Trait Implementations§
Source§impl Default for ProfiledScirs2Exec
impl Default for ProfiledScirs2Exec
Source§impl TlAutodiff for ProfiledScirs2Exec
impl TlAutodiff for ProfiledScirs2Exec
type Tape = <Scirs2Exec as TlAutodiff>::Tape
Source§impl TlExecutor for ProfiledScirs2Exec
impl TlExecutor for ProfiledScirs2Exec
type Tensor = ArrayBase<OwnedRepr<f64>, Dim<IxDynImpl>>
type Error = ExecutorError
Source§fn einsum(
&mut self,
spec: &str,
inputs: &[Self::Tensor],
) -> Result<Self::Tensor, Self::Error>
fn einsum( &mut self, spec: &str, inputs: &[Self::Tensor], ) -> Result<Self::Tensor, Self::Error>
Execute an einsum operation on input tensors.
Source§fn elem_op(
&mut self,
op: ElemOp,
x: &Self::Tensor,
) -> Result<Self::Tensor, Self::Error>
fn elem_op( &mut self, op: ElemOp, x: &Self::Tensor, ) -> Result<Self::Tensor, Self::Error>
Apply an element-wise unary operation.
Source§impl TlProfiledExecutor for ProfiledScirs2Exec
impl TlProfiledExecutor for ProfiledScirs2Exec
Source§fn profiler_mut(&mut self) -> Option<&mut Profiler>
fn profiler_mut(&mut self) -> Option<&mut Profiler>
Get mutable access to profiler
Source§fn enable_profiling(&mut self)
fn enable_profiling(&mut self)
Enable profiling
Source§fn disable_profiling(&mut self)
fn disable_profiling(&mut self)
Disable profiling
Source§fn get_profile_data(&self) -> Option<&ProfileData>
fn get_profile_data(&self) -> Option<&ProfileData>
Get profiling data
Auto Trait Implementations§
impl Freeze for ProfiledScirs2Exec
impl RefUnwindSafe for ProfiledScirs2Exec
impl Send for ProfiledScirs2Exec
impl Sync for ProfiledScirs2Exec
impl Unpin for ProfiledScirs2Exec
impl UnwindSafe for ProfiledScirs2Exec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more