Struct cntk::Variable
[−]
[src]
pub struct Variable { /* fields omitted */ }
Methods
impl Variable
[src]
fn create<A: Borrow<Axis>>(
shape: &Shape,
is_sparse: bool,
needs_gradient: bool,
name: &str,
dynamic_axes: &[A]
) -> Variable
[src]
shape: &Shape,
is_sparse: bool,
needs_gradient: bool,
name: &str,
dynamic_axes: &[A]
) -> Variable
fn input_variable(shape: &Shape) -> Variable
[src]
fn sparse_input_variable(shape: &Shape) -> Variable
[src]
fn input_variable_with_name(shape: &Shape, name: &str) -> Variable
[src]
fn input_variable_with_gradient(shape: &Shape) -> Variable
[src]
fn parameter(
shape: &Shape,
initializer: &ParameterInitializer,
device: DeviceDescriptor
) -> Variable
[src]
shape: &Shape,
initializer: &ParameterInitializer,
device: DeviceDescriptor
) -> Variable
fn placeholder(shape: &Shape) -> Variable
[src]
fn constant_scalar(value: f32) -> Variable
[src]
fn constant_repeat(shape: &Shape, value: f32) -> Variable
[src]
fn constant_from_slice(
shape: &Shape,
value: &[f32],
device: DeviceDescriptor
) -> Variable
[src]
shape: &Shape,
value: &[f32],
device: DeviceDescriptor
) -> Variable
fn shape(&self) -> Shape
[src]
fn is_parameter(&self) -> bool
[src]
fn name(&self) -> String
[src]
fn normal_random(x: &Shape, mean: f64, scale: f64) -> Variable
[src]
fn bernoulli_random(x: &Shape, mean: f64) -> Variable
[src]
fn uniform_random(x: &Shape, low: f64, high: f64) -> Variable
[src]
fn gumbel_random(x: &Shape, loc: f64, scale: f64) -> Variable
[src]
fn parameter_to_vec(&self) -> Vec<f32>
[src]
Trait Implementations
impl Debug for Variable
[src]
impl Clone for Variable
[src]
fn clone(&self) -> Self
[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