Sign in

    mizchi/webnn/tensor does not have a README file

    TensorOps

    pub(open) trait TensorOps {
    fn shape(Self) ->
    Shape

    fn add(Self, Self) -> Self raise
    fn sub(Self, Self) -> Self raise
    fn mul(Self, Self) -> Self raise
    fn div(Self, Self) -> Self raise
    fn reduce_mean(Self, Array[Int], Bool) -> Self raise
    fn gather(Self, Array[Int],
    Shape
    , Int) -> Self raise
    fn slice(Self, Array[Int], Array[Int]) -> Self raise
    fn gelu(Self) -> Self raise
    fn layer_normalization(Self, Self, Self, Array[Int], Float) -> Self raise
    fn concat(Self, Self, Int) -> Self raise
    fn matmul(Self, Self) -> Self raise
    fn conv2d(Self, Self,
    Conv2dOptions
    ) -> Self raise
    fn max_pool2d(Self,
    Pool2dOptions
    ) -> Self raise
    fn average_pool2d(Self,
    Pool2dOptions
    ) -> Self raise
    fn sigmoid(Self) -> Self raise
    fn tanh(Self) -> Self raise
    fn clamp(Self, Float, Float) -> Self raise
    fn relu(Self) -> Self raise
    fn softmax(Self, Int) -> Self raise
    fn reshape(Self,
    Shape
    ) -> Self raise
    fn transpose(Self, Array[Int]) -> Self raise
    }

    TensorError

    pub suberror TensorError {
    TensorError(String)
    }

    TensorError::new

    fn TensorError::new(message : String) -> TensorError

    TensorError::to_string

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

    Source Files

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io