Struct autograd::tensor::Tensor
[−]
[src]
pub struct Tensor(pub Rc<RefCell<RawTensor>>);
Symbolic multi-dimensional array which supports efficient gradient computation.
Methods
impl Tensor
[src]
fn is_source(&self) -> bool
[src]
fn eval(&self) -> Array<f32, IxDyn>
[src]
Returns a value of this node
fn eval_with_input(&self, feed_dict: Input) -> Array<f32, IxDyn>
[src]
Returns a value of this node
fn visit_once<F>(&self, f: &mut F) where
F: FnMut(&Tensor),
[src]
F: FnMut(&Tensor),
fn visit<F>(&self, f: &mut F) where
F: FnMut(&Tensor),
[src]
F: FnMut(&Tensor),
Methods from Deref<Target = Rc<RefCell<RawTensor>>>
Trait Implementations
impl Ord for Tensor
[src]
fn cmp(&self, other: &Self) -> Ordering
[src]
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
[src]
ord_max_min
)Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
[src]
ord_max_min
)Compares and returns the minimum of two values. Read more
impl PartialOrd for Tensor
[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Eq for Tensor
[src]
impl PartialEq for Tensor
[src]
fn eq(&self, other: &Tensor) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Hash for Tensor
[src]
fn hash<H: Hasher>(&self, _: &mut H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Clone for Tensor
[src]
fn clone(&self) -> Tensor
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Deref for Tensor
[src]
type Target = Rc<RefCell<RawTensor>>
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
Dereferences the value.
impl DerefMut for Tensor
[src]
fn deref_mut<'a>(&'a mut self) -> &'a mut Rc<RefCell<RawTensor>>
[src]
Mutably dereferences the value.
impl Display for Tensor
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Add for Tensor
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: Tensor) -> Self::Output
[src]
Performs the +
operation.
impl<'a> Add<&'a Tensor> for Tensor
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: &Tensor) -> Self::Output
[src]
Performs the +
operation.
impl<'a> Add<Tensor> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: Tensor) -> Self::Output
[src]
Performs the +
operation.
impl<'a, 'b> Add<&'a Tensor> for &'b Tensor
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: &Tensor) -> Self::Output
[src]
Performs the +
operation.
impl Sub for Tensor
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: Tensor) -> Self::Output
[src]
Performs the -
operation.
impl<'a> Sub<&'a Tensor> for Tensor
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: &Tensor) -> Self::Output
[src]
Performs the -
operation.
impl<'a> Sub<Tensor> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: Tensor) -> Self::Output
[src]
Performs the -
operation.
impl<'a, 'b> Sub<&'a Tensor> for &'b Tensor
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: &Tensor) -> Self::Output
[src]
Performs the -
operation.
impl Mul for Tensor
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: Tensor) -> Self::Output
[src]
Performs the *
operation.
impl<'a> Mul<&'a Tensor> for Tensor
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: &Tensor) -> Self::Output
[src]
Performs the *
operation.
impl<'a> Mul<Tensor> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: Tensor) -> Self::Output
[src]
Performs the *
operation.
impl<'a, 'b> Mul<&'a Tensor> for &'b Tensor
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: &Tensor) -> Self::Output
[src]
Performs the *
operation.
impl Div for Tensor
[src]
type Output = Tensor
The resulting type after applying the /
operator.
fn div(self, rhs: Tensor) -> Self::Output
[src]
Performs the /
operation.
impl<'a> Div<&'a Tensor> for Tensor
[src]
type Output = Tensor
The resulting type after applying the /
operator.
fn div(self, rhs: &Tensor) -> Self::Output
[src]
Performs the /
operation.
impl<'a> Div<Tensor> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the /
operator.
fn div(self, rhs: Tensor) -> Self::Output
[src]
Performs the /
operation.
impl<'a, 'b> Div<&'a Tensor> for &'b Tensor
[src]
type Output = Tensor
The resulting type after applying the /
operator.
fn div(self, rhs: &Tensor) -> Self::Output
[src]
Performs the /
operation.
impl Add<i32> for Tensor
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: i32) -> Self::Output
[src]
Performs the +
operation.
impl<'a> Add<i32> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: i32) -> Self::Output
[src]
Performs the +
operation.
impl Sub<i32> for Tensor
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: i32) -> Self::Output
[src]
Performs the -
operation.
impl<'a> Sub<i32> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: i32) -> Self::Output
[src]
Performs the -
operation.
impl Mul<i32> for Tensor
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: i32) -> Self::Output
[src]
Performs the *
operation.
impl<'a> Mul<i32> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: i32) -> Self::Output
[src]
Performs the *
operation.
impl Div<i32> for Tensor
[src]
type Output = Tensor
The resulting type after applying the /
operator.
fn div(self, rhs: i32) -> Self::Output
[src]
Performs the /
operation.
impl<'a> Div<i32> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the /
operator.
fn div(self, rhs: i32) -> Self::Output
[src]
Performs the /
operation.
impl Add<i64> for Tensor
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: i64) -> Self::Output
[src]
Performs the +
operation.
impl<'a> Add<i64> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: i64) -> Self::Output
[src]
Performs the +
operation.
impl Sub<i64> for Tensor
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: i64) -> Self::Output
[src]
Performs the -
operation.
impl<'a> Sub<i64> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: i64) -> Self::Output
[src]
Performs the -
operation.
impl Mul<i64> for Tensor
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: i64) -> Self::Output
[src]
Performs the *
operation.
impl<'a> Mul<i64> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: i64) -> Self::Output
[src]
Performs the *
operation.
impl Div<i64> for Tensor
[src]
type Output = Tensor
The resulting type after applying the /
operator.
fn div(self, rhs: i64) -> Self::Output
[src]
Performs the /
operation.
impl<'a> Div<i64> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the /
operator.
fn div(self, rhs: i64) -> Self::Output
[src]
Performs the /
operation.
impl Add<f32> for Tensor
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: f32) -> Self::Output
[src]
Performs the +
operation.
impl<'a> Add<f32> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: f32) -> Self::Output
[src]
Performs the +
operation.
impl Sub<f32> for Tensor
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: f32) -> Self::Output
[src]
Performs the -
operation.
impl<'a> Sub<f32> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: f32) -> Self::Output
[src]
Performs the -
operation.
impl Mul<f32> for Tensor
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: f32) -> Self::Output
[src]
Performs the *
operation.
impl<'a> Mul<f32> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: f32) -> Self::Output
[src]
Performs the *
operation.
impl Div<f32> for Tensor
[src]
type Output = Tensor
The resulting type after applying the /
operator.
fn div(self, rhs: f32) -> Self::Output
[src]
Performs the /
operation.
impl<'a> Div<f32> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the /
operator.
fn div(self, rhs: f32) -> Self::Output
[src]
Performs the /
operation.
impl Add<f64> for Tensor
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: f64) -> Self::Output
[src]
Performs the +
operation.
impl<'a> Add<f64> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: f64) -> Self::Output
[src]
Performs the +
operation.
impl Sub<f64> for Tensor
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: f64) -> Self::Output
[src]
Performs the -
operation.
impl<'a> Sub<f64> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: f64) -> Self::Output
[src]
Performs the -
operation.
impl Mul<f64> for Tensor
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: f64) -> Self::Output
[src]
Performs the *
operation.
impl<'a> Mul<f64> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: f64) -> Self::Output
[src]
Performs the *
operation.
impl Div<f64> for Tensor
[src]
type Output = Tensor
The resulting type after applying the /
operator.
fn div(self, rhs: f64) -> Self::Output
[src]
Performs the /
operation.
impl<'a> Div<f64> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the /
operator.
fn div(self, rhs: f64) -> Self::Output
[src]
Performs the /
operation.
impl Add<u32> for Tensor
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: u32) -> Self::Output
[src]
Performs the +
operation.
impl<'a> Add<u32> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: u32) -> Self::Output
[src]
Performs the +
operation.
impl Sub<u32> for Tensor
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: u32) -> Self::Output
[src]
Performs the -
operation.
impl<'a> Sub<u32> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: u32) -> Self::Output
[src]
Performs the -
operation.
impl Mul<u32> for Tensor
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: u32) -> Self::Output
[src]
Performs the *
operation.
impl<'a> Mul<u32> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: u32) -> Self::Output
[src]
Performs the *
operation.
impl Div<u32> for Tensor
[src]
type Output = Tensor
The resulting type after applying the /
operator.
fn div(self, rhs: u32) -> Self::Output
[src]
Performs the /
operation.
impl<'a> Div<u32> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the /
operator.
fn div(self, rhs: u32) -> Self::Output
[src]
Performs the /
operation.
impl Add<u64> for Tensor
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: u64) -> Self::Output
[src]
Performs the +
operation.
impl<'a> Add<u64> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: u64) -> Self::Output
[src]
Performs the +
operation.
impl Sub<u64> for Tensor
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: u64) -> Self::Output
[src]
Performs the -
operation.
impl<'a> Sub<u64> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: u64) -> Self::Output
[src]
Performs the -
operation.
impl Mul<u64> for Tensor
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: u64) -> Self::Output
[src]
Performs the *
operation.
impl<'a> Mul<u64> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: u64) -> Self::Output
[src]
Performs the *
operation.
impl Div<u64> for Tensor
[src]
type Output = Tensor
The resulting type after applying the /
operator.
fn div(self, rhs: u64) -> Self::Output
[src]
Performs the /
operation.
impl<'a> Div<u64> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the /
operator.
fn div(self, rhs: u64) -> Self::Output
[src]
Performs the /
operation.
impl Add<usize> for Tensor
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: usize) -> Self::Output
[src]
Performs the +
operation.
impl<'a> Add<usize> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: usize) -> Self::Output
[src]
Performs the +
operation.
impl Sub<usize> for Tensor
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: usize) -> Self::Output
[src]
Performs the -
operation.
impl<'a> Sub<usize> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: usize) -> Self::Output
[src]
Performs the -
operation.
impl Mul<usize> for Tensor
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: usize) -> Self::Output
[src]
Performs the *
operation.
impl<'a> Mul<usize> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: usize) -> Self::Output
[src]
Performs the *
operation.
impl Div<usize> for Tensor
[src]
type Output = Tensor
The resulting type after applying the /
operator.
fn div(self, rhs: usize) -> Self::Output
[src]
Performs the /
operation.
impl<'a> Div<usize> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the /
operator.
fn div(self, rhs: usize) -> Self::Output
[src]
Performs the /
operation.
impl Add<isize> for Tensor
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: isize) -> Self::Output
[src]
Performs the +
operation.
impl<'a> Add<isize> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: isize) -> Self::Output
[src]
Performs the +
operation.
impl Sub<isize> for Tensor
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: isize) -> Self::Output
[src]
Performs the -
operation.
impl<'a> Sub<isize> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: isize) -> Self::Output
[src]
Performs the -
operation.
impl Mul<isize> for Tensor
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: isize) -> Self::Output
[src]
Performs the *
operation.
impl<'a> Mul<isize> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: isize) -> Self::Output
[src]
Performs the *
operation.
impl Div<isize> for Tensor
[src]
type Output = Tensor
The resulting type after applying the /
operator.
fn div(self, rhs: isize) -> Self::Output
[src]
Performs the /
operation.