Struct tensorflow::ops::NearestNeighbors
source · pub struct NearestNeighbors { /* private fields */ }
Expand description
Builder for the NearestNeighbors
operation.
Implementations§
source§impl NearestNeighbors
impl NearestNeighbors
sourcepub fn add_control_input(self, op: Operation) -> Self
pub fn add_control_input(self, op: Operation) -> Self
Adds a control input.
sourcepub fn build<O0: Into<Output>, O1: Into<Output>, O2: Into<Output>>(
&self,
points: O0,
centers: O1,
k: O2,
scope: &mut Scope
) -> Result<Operation>
pub fn build<O0: Into<Output>, O1: Into<Output>, O2: Into<Output>>( &self, points: O0, centers: O1, k: O2, scope: &mut Scope ) -> Result<Operation>
Builds the NearestNeighbors
operation.
sourcepub fn build_instance(
&self,
points: Output,
centers: Output,
k: Output,
scope: &mut Scope
) -> Result<NearestNeighborsInst>
pub fn build_instance( &self, points: Output, centers: Output, k: Output, scope: &mut Scope ) -> Result<NearestNeighborsInst>
Builds a new instance of ‘NearestNeighbors’ Operation with it’s Outputs and Inputs exposed as methods.
Trait Implementations§
source§impl Debug for NearestNeighbors
impl Debug for NearestNeighbors
source§impl Default for NearestNeighbors
impl Default for NearestNeighbors
source§fn default() -> NearestNeighbors
fn default() -> NearestNeighbors
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for NearestNeighbors
impl Send for NearestNeighbors
impl Sync for NearestNeighbors
impl Unpin for NearestNeighbors
impl UnwindSafe for NearestNeighbors
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