pub struct TensorArangeWithDtypeBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with call().
Implementations§
Source§impl<S: State> TensorArangeWithDtypeBuilder<S>
impl<S: State> TensorArangeWithDtypeBuilder<S>
Sourcepub fn call(self) -> Result<Tensor>where
S: IsComplete,
pub fn call(self) -> Result<Tensor>where
S: IsComplete,
Finishes building and performs the requested action.
Sourcepub fn start(self, value: Arc<UOp>) -> TensorArangeWithDtypeBuilder<SetStart<S>>where
S::Start: IsUnset,
pub fn start(self, value: Arc<UOp>) -> TensorArangeWithDtypeBuilder<SetStart<S>>where
S::Start: IsUnset,
Required.
Sourcepub fn stop(self, value: Arc<UOp>) -> TensorArangeWithDtypeBuilder<SetStop<S>>where
S::Stop: IsUnset,
pub fn stop(self, value: Arc<UOp>) -> TensorArangeWithDtypeBuilder<SetStop<S>>where
S::Stop: IsUnset,
Sourcepub fn maybe_stop(
self,
value: Option<Arc<UOp>>,
) -> TensorArangeWithDtypeBuilder<SetStop<S>>where
S::Stop: IsUnset,
pub fn maybe_stop(
self,
value: Option<Arc<UOp>>,
) -> TensorArangeWithDtypeBuilder<SetStop<S>>where
S::Stop: IsUnset,
Sourcepub fn dtype(self, value: DType) -> TensorArangeWithDtypeBuilder<SetDtype<S>>where
S::Dtype: IsUnset,
pub fn dtype(self, value: DType) -> TensorArangeWithDtypeBuilder<SetDtype<S>>where
S::Dtype: IsUnset,
Required.
Sourcepub fn step(self, value: Arc<UOp>) -> TensorArangeWithDtypeBuilder<SetStep<S>>where
S::Step: IsUnset,
pub fn step(self, value: Arc<UOp>) -> TensorArangeWithDtypeBuilder<SetStep<S>>where
S::Step: IsUnset,
Sourcepub fn maybe_step(
self,
value: Option<Arc<UOp>>,
) -> TensorArangeWithDtypeBuilder<SetStep<S>>where
S::Step: IsUnset,
pub fn maybe_step(
self,
value: Option<Arc<UOp>>,
) -> TensorArangeWithDtypeBuilder<SetStep<S>>where
S::Step: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for TensorArangeWithDtypeBuilder<S>
impl<S = Empty> !RefUnwindSafe for TensorArangeWithDtypeBuilder<S>
impl<S> Send for TensorArangeWithDtypeBuilder<S>
impl<S> Sync for TensorArangeWithDtypeBuilder<S>
impl<S> Unpin for TensorArangeWithDtypeBuilder<S>
impl<S> UnsafeUnpin for TensorArangeWithDtypeBuilder<S>
impl<S = Empty> !UnwindSafe for TensorArangeWithDtypeBuilder<S>
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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