Sign in

    mizchi/webnn/shape does not have a README file

    ShapeError

    pub suberror ShapeError {
    ShapeError(String)
    }

    ShapeError::to_string

    fn ShapeError::to_string(self : ShapeError) -> String

    Conv2dFilterLayout

    pub(all) enum Conv2dFilterLayout {
    Oihw
    Hwio
    } derive(Eq,
    Debug
    )

    Conv2dFilterLayout::to_webnn_string

    fn Conv2dFilterLayout::to_webnn_string(self : Conv2dFilterLayout) -> String

    Conv2dOptions

    pub struct Conv2dOptions {
    padding_ : Array[Int]
    strides_ : Array[Int]
    dilations_ : Array[Int]
    groups_ : Int
    input_layout_ : InputLayout
    filter_layout_ : Conv2dFilterLayout
    }

    Validated 2-D convolution options.

    Conv2dOptions::default

    fn Conv2dOptions::default() -> Conv2dOptions

    Conv2dOptions::dilations

    fn Conv2dOptions::dilations(self : Conv2dOptions) -> Array[Int]

    Conv2dOptions::filter_layout

    fn Conv2dOptions::filter_layout(self : Conv2dOptions) -> Conv2dFilterLayout

    Conv2dOptions::groups

    fn Conv2dOptions::groups(self : Conv2dOptions) -> Int

    Conv2dOptions::input_layout

    fn Conv2dOptions::input_layout(self : Conv2dOptions) -> InputLayout

    Conv2dOptions::new

    fn Conv2dOptions::new(padding : Array[Int], strides : Array[Int], dilations : Array[Int], groups : Int) -> Conv2dOptions raise ShapeError

    Conv2dOptions::new_with_layout

    fn Conv2dOptions::new_with_layout(padding : Array[Int], strides : Array[Int], dilations : Array[Int], groups : Int, input_layout : InputLayout, filter_layout : Conv2dFilterLayout) -> Conv2dOptions raise ShapeError

    Conv2dOptions::padding

    fn Conv2dOptions::padding(self : Conv2dOptions) -> Array[Int]

    Conv2dOptions::strides

    fn Conv2dOptions::strides(self : Conv2dOptions) -> Array[Int]

    InputLayout

    pub(all) enum InputLayout {
    Nchw
    Nhwc
    } derive(Eq,
    Debug
    )

    InputLayout::to_webnn_string

    fn InputLayout::to_webnn_string(self : InputLayout) -> String

    Pool2dOptions

    pub struct Pool2dOptions {
    window_dimensions_ : Array[Int]
    padding_ : Array[Int]
    strides_ : Array[Int]
    dilations_ : Array[Int]
    input_layout_ : InputLayout
    }

    Validated 2-D pooling options.

    Pool2dOptions::dilations

    fn Pool2dOptions::dilations(self : Pool2dOptions) -> Array[Int]

    Pool2dOptions::input_layout

    fn Pool2dOptions::input_layout(self : Pool2dOptions) -> InputLayout

    Pool2dOptions::new

    fn Pool2dOptions::new(window_dimensions : Array[Int], padding : Array[Int], strides : Array[Int], dilations : Array[Int]) -> Pool2dOptions raise ShapeError

    Pool2dOptions::new_with_layout

    fn Pool2dOptions::new_with_layout(window_dimensions : Array[Int], padding : Array[Int], strides : Array[Int], dilations : Array[Int], input_layout : InputLayout) -> Pool2dOptions raise ShapeError

    Pool2dOptions::padding

    fn Pool2dOptions::padding(self : Pool2dOptions) -> Array[Int]

    Pool2dOptions::strides

    fn Pool2dOptions::strides(self : Pool2dOptions) -> Array[Int]

    Pool2dOptions::window_dimensions

    fn Pool2dOptions::window_dimensions(self : Pool2dOptions) -> Array[Int]

    Shape

    pub struct Shape {
    dimensions_ : Array[Int]
    }

    Shape::broadcast

    fn Shape::broadcast(lhs : Shape, rhs : Shape) -> Shape raise ShapeError

    Shape::concat

    fn Shape::concat(lhs : Shape, rhs : Shape, axis : Int) -> Shape raise ShapeError

    Return the shape produced by binary concatenation along axis.

    Shape::conv2d

    fn Shape::conv2d(input : Shape, filter : Shape, options : Conv2dOptions) -> Shape raise ShapeError

    Shape::conv2d_nchw_oihw

    fn Shape::conv2d_nchw_oihw(input : Shape, filter : Shape, options : Conv2dOptions) -> Shape raise ShapeError

    Shape::dimension

    fn Shape::dimension(self : Shape, index : Int) -> Int

    Shape::dimensions

    fn Shape::dimensions(self : Shape) -> Array[Int]

    Shape::element_count

    fn Shape::element_count(self : Shape) -> Int

    Shape::gather

    fn Shape::gather(self : Shape, indices : Shape, axis : Int) -> Shape raise ShapeError

    Shape::layer_normalization

    fn Shape::layer_normalization(input : Shape, scale : Shape, bias : Shape, axes : Array[Int], epsilon : Float) -> Shape raise ShapeError

    Shape::matmul

    fn Shape::matmul(lhs : Shape, rhs : Shape) -> Shape raise ShapeError

    Shape::new

    fn Shape::new(dimensions : Array[Int]) -> Shape raise ShapeError

    Shape::pool2d

    fn Shape::pool2d(input : Shape, options : Pool2dOptions) -> Shape raise ShapeError

    Shape::rank

    fn Shape::rank(self : Shape) -> Int

    Shape::reduce

    fn Shape::reduce(self : Shape, axes : Array[Int], keep_dimensions : Bool) -> Shape raise ShapeError

    Shape::same_as

    fn Shape::same_as(self : Shape, other : Shape) -> Bool

    Shape::slice

    fn Shape::slice(self : Shape, starts : Array[Int], sizes : Array[Int]) -> Shape raise ShapeError

    Shape::to_string

    fn Shape::to_string(self : Shape) -> String

    Shape::transpose

    fn Shape::transpose(self : Shape, permutation : Array[Int]) -> Shape raise ShapeError

    Shape::validate_axis

    fn Shape::validate_axis(self : Shape, axis : Int) -> Unit raise ShapeError

    Source Files

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io