menu
destack
import destack
Namespaces
accessibilityaccessibility namespace.arcarc namespace.arenaarena namespace.assertassert namespace.audioaudio namespace.benchbench namespace.bindingbinding namespace.broadcastbroadcast namespace.bytesbytes namespace.cellcell namespace.channelchannel namespace.computecompute namespace.consoleconsole namespace.convertconvert namespace.cowcow namespace.cryptocrypto namespace.debugdebug namespace.devicedevice namespace.displaydisplay namespace.dnsdns namespace.ffiffi namespace.fsfs namespace.fuzzfuzz namespace.gpugpu namespace.hinthint namespace.httphttp namespace.httpshttps namespace.inputinput namespace.ioio namespace.ipcipc namespace.jsonjson namespace.mpmcmpmc namespace.mpscmpsc namespace.netnet namespace.oneshotoneshot namespace.osos namespace.pathpath namespace.processprocess namespace.profileprofile namespace.randomrandom namespace.rangerange namespace.rawraw namespace.rcrc namespace.regexpregexp namespace.runtimeruntime namespace.schemaschema namespace.serdeserde namespace.simulationsimulation namespace.streamstream namespace.syncsync namespace.syssys namespace.telemetrytelemetry namespace.tensortensor namespace.testtest namespace.timetime namespace.tlstls namespace.topologytopology namespace.ttytty namespace.typestypes namespace.urlurl namespace.watchwatch namespace.workerworker namespace.zlibzlib namespace.
Classes
ArrayA growable compact array.AsyncGeneratorAsync generator object.AsyncMutexAsynchronous mutual exclusion lock.AsyncOnceOne-time async execution state.AsyncOnceCellOne-time async initialized cell.AsyncRwLockAsynchronous reader-writer lock.AsyncSemaphoreAsynchronous counting semaphore.BigIntArbitrary-precision integer.BindingOne dynamically scoped binding family.ByteBufferGrowable byte buffer.ByteReaderSequential byte reader over in-memory bytes.ConcurrentMapA sharded concurrent hash map.ConcurrentQueueA concurrent multi-producer multi-consumer queue.ConcurrentSetA sharded concurrent hash set.ContextOne immutable dynamically scoped execution context.ContextVarOne dynamically scoped execution value.DequeA compact double-ended queue.GeneratorGenerator object.JSONJavaScript-shaped JSON API.JsonDeserializerJSON decoder.JsonSerializerJSON encoder.LinkedListA linked list.MapA compact hash map.MathFloating point math functions and constants.NotifyAsynchronous notification primitive.NumberNumber constants and parsing functions.PromiseValue produced by asynchronous execution.ReflectStatic reflection namespace.RegExpRegular expression pattern.SetA compact hash set.SortedMapA compact sorted map.SortedSetA compact sorted set.StringImmutable UTF-8 string.StringBuilderMutable UTF-8 string builder with growable backing storage.TaskSingle-consumer asynchronous result on its own fiber.
Structs
AllocationCapacityOverflowAllocation failed because the requested capacity cannot be represented.AllocationOutOfMemoryAllocation failed because the runtime could not reserve enough memory.AllocationUnsupportedAllocation failed because the runtime does not support the requested operation.AsyncMutexGuardActive async mutex guard.AsyncRwLockReadGuardActive async readonly lock guard.AsyncRwLockWriteGuardActive async exclusive lock guard.AsyncSemaphorePermitActive async semaphore permit.AxisSetAxis set used by reductions and broadcasts.BinaryHeapA binary max-heap.BreakBreaking Try branch.BufferTyped storage allocated on one compute device.BufferCopyRegionByte region copied between compute buffers.BufferOptionsAllocation options for a compute buffer.CellInterior mutable storage for copyable values.ComplexComplex number with floating-point components.ComputeErrorPortable compute error.ConcurrentMapEntryEntry guard for one concurrent map key.ConcurrentMapReadRead guard for one concurrent map entry.ConcurrentMapWriteWrite guard for one concurrent map entry.ConcurrentSetReadRead guard for one concurrent set value.ContinueContinuing Try branch.ConvolutionAxesAxis mapping for tensor convolution.ConvolutionGroupsGrouping parameters for tensor convolution.ConvolutionWindowWindow parameters for tensor convolution.CoordinateTensor coordinate with Rank indices.CowBorrowedBorrowed copy-on-write value.CowOwnedOwned copy-on-write value.DecodeErrorByte decoding failure.DeviceCapabilitiesCompute capabilities exposed by one device.DeviceLimitsPortable compute limits for one device.DeviceMemoryCompute device memory snapshot.DevicePropertiesCompute device properties visible to portable code.DeviceQueryQuery used to select compute devices.DotAxesAxis mapping for tensor dot.DropIteratorIterator that skips an initial number of yielded values.ErrFailed result variant.FactorizationOptionsOptions for matrix factorizations.FiberCooperative execution on the current Worker.FilterIteratorIterator that retains yielded values accepted by a predicate.FlatMapIteratorIterator that maps each value to an iterable and yields its values.GatherAxesAxis mapping for tensor gather.GeneratorChannelStep surface passed to one lowered generator body.GeneratorResumeFinishRun the body's return path with one completion value.GeneratorResumeNextContinue the body with one sent value.HostErrorContextAudioAudio host-error context payload.HostErrorContextDeviceDevice host-error context payload.HostErrorContextDisplayDisplay host-error context payload.HostErrorContextFfiFFI host-error context payload.HostErrorContextGenericGeneric host-error context payload.HostErrorContextGpuGPU host-error context payload.HostErrorContextIoI/O host-error context payload.HostErrorContextIoDriverI/O-driver host-error context payload.HostErrorContextIpcIPC host-error context payload.HostErrorContextNetNetwork host-error context payload.HostErrorContextProcessProcess host-error context payload.HostErrorContextResourceResource host-error context payload.HostErrorContextSecuritySecurity host-error context payload.HostErrorContextTimerTimer host-error context payload.HostPathPayloadBytesByte-path payload attached to an error context.HostPathPayloadUtf16UTF-16 path payload attached to an error context.HostSystemSourceEaiEAI source payload.HostSystemSourceErrnoPOSIX errno source payload.HostSystemSourceHResultHRESULT source payload.HostSystemSourceOtherOther source payload.HostSystemSourceSignalSignal source payload.HostSystemSourceWinsockWinsock source payload.InspectIteratorIterator that observes each yielded value.IoErrorPortable I/O failure.IteratorReturnA completed iterator value.IteratorYieldA yielded iterator value.JsonErrorJSON parse, stringify, encode, or decode error.JsonParseContextSource context passed to a JSON reviver.KernelParameterKernel parameter visible through reflection.KernelSignatureKernel entry point metadata.LayoutTarget-specific layout for one type.LayoutFieldTarget-specific layout for one aggregate field.LayoutVariantTarget-specific layout for one variant case.MapEntryOne map entry.MapEntryHandleMutating access to one map entry.MapIteratorIterator that maps each yielded value.Matrix2Two-by-two matrix in row-major field order.Matrix3Three-by-three matrix in row-major field order.Matrix4Four-by-four matrix in row-major field order.MeshAxisNamed axis inside a compute mesh.NamedAxisNamed axis metadata used by frontends and debugging tools.NormalizationOptionsOptions for normalization operations.OkSuccessful result variant.PaddingPadding for a tensor with Rank axes.PanicPanic instance observed by hooks and supervisors.PathErrorI/O failure attached to a path operation.PeekableIteratorIterator with one buffered yielded value.PermutationAxis permutation with Rank entries.PoolOptionsWindow options for pooling.PoolWindowWindow parameters for pooling.ProgramBinaryBinary compute program source.ProgramDiagnosticDiagnostic emitted while compiling a compute program.ProgramLocationSource location for a compute program diagnostic.ProgramOptionsCompile options for one compute program.ProgramReportReport from compiling a compute program.ProgramTextText compute program source.PromiseResolversPromise with its resolving function.QuaternionQuaternion rotation value.RangeHalf-open range start..end.RangeFromRange from start...RangeFullFull range ...RangeInclusiveInclusive range start..=end.RangeIteratorIterator over a stepped range.RangeToRange to ..end.RangeToInclusiveInclusive range to ..=end.ReceiveErrorFailed receive operation.RegExpIndicesMatch spans produced by the d flag.RegExpMatchOne regular expression match.RegExpSpanHalf-open match span in UTF-16 code units.ReportErased error value for application boundaries.ScatterAxesAxis mapping for tensor scatter.SendErrorFailed send operation.ShapeTensor shape with Rank axes.SlabA generational slab with stable keys and reusable slots.SliceWindowSlice window for a tensor with Rank axes.SmallArrayA growable contiguous array with inline storage.SoftmaxOptionsOptions for softmax-like operations.SortedMapEntryOne sorted map entry.SortedMapEntryHandleMutating access to one sorted map entry.TakeIteratorIterator limited to an initial number of yielded values.TaskScopeStructured owner of spawned tasks.TensorConvertOptionsOutput options for tensor conversion.TensorConvolutionOptionsOutput options for tensor convolution.TensorCreateOptionsAllocation options for a new tensor.TensorExecutionOptionsExecution options for tensor work.TensorOutputOptionsOutput options for tensor operations.TensorReduceOptionsOutput options for tensor reductions.TensorScatterOptionsOutput options for tensor scatter.Vector2Two-dimensional vector.Vector3Three-dimensional vector.Vector4Four-dimensional vector.WorkgroupCountNumber of workgroups to dispatch.WorkgroupSizeWorkgroup size for one kernel dispatch.
Enums
ComputeErrorKindCompute failure category.ConvertModeConversion mode for tensor element conversion.DeviceFeatureOptional compute feature exposed by a device.DeviceKindCompute execution and storage device kind.FactorizationModeMatrix factorization mode.HostAccessHost mapping permission for a compute buffer.HostErrorCodeError code returned by host bindings.IoErrorKindPortable I/O error category.JsonErrorKindJSON error category.KernelParameterKindKernel parameter kind.MemoryOrderMemory order for dense tensor storage.OrderingResult of a comparison operation.ProgramDiagnosticSeveritySeverity of a compute program diagnostic.ProgramFormatFormat for a compute program source.ReceiveErrorKindChannel receive failure kind.ReductionReduction used when partial tensor shards are combined.ScatterModeUpdate mode for tensor scatter.SendErrorKindChannel send failure kind.
Newtypes
AccessOfExtract the access mode of T.AccessOrExtract the access mode of T, or fall back to D.AllocationErrorAllocation failure returned by typed fallible allocation APIs.allowSuppress a diagnostic.AsyncResultAsync recoverable success or failure.AxisAxis index inside a tensor rank.BaseOfExtract the unqualified base type of T.BorrowedBorrowed access form for exactly T.BoundOne endpoint of a range.BoxA uniquely owned heap allocation for an owned T.captureConfigure closure capture modes for a lambda.CloneIteratorIterator that clones borrowed values.coldHint that a function is on a cold path.ControlFlowResult of branching a Try carrier.CopyIteratorIterator that copies borrowed values.CowCopy-on-write value.DenseDense contiguous tensor format.denyReport a diagnostic as an error.deprecatedMarks a declaration as deprecated.deriveDerive provider dispatcher.DeviceCompute device identity and placement handle.DynamicErased runtime value for interface constraint T.EventCompletion marker recorded on a compute stream.expectExpect a diagnostic.experimentalMarks a declaration as experimental.ExtentRuntime size along one tensor axis.externMarks a declaration as externally linked.forbidForbid overriding a diagnostic error.FunctionCallable value type, repeatable by default and affine when invoked once.HostErrorError returned by host bindings.HostErrorContextTyped context for host error metadata.HostPathPayloadPath payload attached to an error context.HostSystemSourceHost-level system source metadata.hotHint that a function is on a hot path.inlineInline hint for generated code.intrinsicCompiler intrinsic marker.IsBorrowedReturn whether T is borrowed.IsManagedReturn whether T is managed.IsOwnedReturn whether T is owned.IsRawReturn whether T is raw.IsSharedReturn whether T is explicitly placed in shared space.IsSharedInReturn whether T resolves to shared space in concrete space S.IteratorResultThe union of iterator yield and completion results.JsonJSON value.KernelCallable entry point inside a compute program.KernelArgumentEncoded kernel argument.languageItemCompiler language item marker.LayoutShapeReflected layout shape.LifetimeLifetime marker for borrowed validity.LifetimeOfExtract the borrow lifetime of T.LifetimeOrExtract the borrow lifetime of T, or fall back to D.likelyHint that a branch is likely to be taken.ManagedDefault managed form for exactly T.ManuallyDropOwned storage whose Drop does not run automatically.MaybeUninitStorage for T whose lifetime may not have started.MeshMulti-device placement topology.mustUseWarn when a return value is ignored.noAliasingMutableBorrowsBan aliasing mutable borrows.noDynamicDispatchForbid dynamic dispatch.noHeapForbid heap allocation.noImplicitReceiversBan implicit method receivers.noinlineNo-inline hint for generated code.noManagedForbid managed values and managed allocation.noReflectionForbid runtime reflection.noRuntimeForbid runtime-dependent language features.noUnsafeForbid unsafe operations.noUnwindForbid unwinding.OwnedUnique ownership form for exactly T.OwnershipOfExtract the outer ownership form of T.OwnershipOrExtract the ownership of T, or fall back to D.PartialStore partial results across one mesh axis.PayloadOfExtract the payload under the outermost memory form.PhantomZero-sized marker for ownership, variance, and drop behavior.PinAddress-stable storage wrapper.PlacedPlacement form for exactly T.PlaceInResolve relative placement in concrete space S.PlaceOfExtract the placement of T.PlaceOrExtract the placement of T, or fall back to D.ProgramCompiled compute code for one device.ProgramSourceCompute program source.pureMark a function as free of observable side effects.RawUnsafe raw pointer form for exactly T.ReplicateReplicate one tensor axis across the mesh.reprSpecify the representation for a declaration.ResultRecoverable success or failure.safeMarks a declaration as containing unsafe implementation details behind a safe API.ShardSplit one tensor axis across one mesh axis.ShardingTensor storage partitioned or replicated across a compute mesh.sinkMarks a declaration as a boundary where tainted data leaves.SlabKeyKey for one live slab entry.SliceWell-known library type for the builtin slice descriptor form [T].sourceMarks a declaration as a boundary where tainted data enters.SpaceOfExtract the explicit concrete space of T.SpaceOrExtract the explicit concrete space of T, or fall back to D.StackFrameIdOpaque identity for a runtime stack frame.StaticKeyOne reflected static property key.StreamOrdered command stream for one compute device.StrideTensor element stride.StridedExplicit strided tensor view format.StringSliceBorrowed UTF-8 string slice.tailcallHint that a function should use a tail call.taintMarks data as carrying one taint.TensorOwning tensor value.TensorViewBorrowed view over tensor storage.TypeReflected semantic type for T.TypeIdStable type identifier.UniqueUnique traced heap handle containing exactly T.unlikelyHint that a branch is unlikely to be taken.unrollLoop unroll hint for generated code.unsafeMarks an API, expression, or block as crossing an unsafe boundary.UnsafeCellUnsafe interior mutable storage.UnshardedTensor storage on one device.untaintMarks a declaration as removing taints for one boundary domain.VectorFixed-width vector type.warnReport a diagnostic as a warning.WithAccessReborrow Q with access mode A.WithBaseReplace the unqualified base type of Q with T.WithLifetimeReborrow Q with lifetime L.WithOwnershipAdd ownership form O around Q.WithPlaceReplace placement of Q with place P.WithSpaceResolve relative placement of Q in concrete space S.WrappingInteger wrapper whose operators use modular arithmetic.
Newtype interfaces
AddInterface for the + operator.AndInterface for the & operator.AsInterface for reference conversion.AsyncDisposeDeterministic asynchronous cleanup capability, called at the end of an await using scope.AsyncIterableValue that can produce an async iterator.AsyncIteratorProtocol for asynchronously producing values.BorrowEquivalent borrowed form of a value.CloneMark a type as explicitly cloneable.CompareInterface for total comparison and ordering.ConcreteMark a type as having a complete storage representation.CopyMark a type as implicitly duplicable without ownership transfer.DebugInterface for developer-facing string representation.DefaultMark a type as having a conventional default value.DereferenceInterface for dereference projection *a.DeserializeValue that can be deserialized through D.DeserializerStructured value deserializer.DisplayInterface for user-facing string representation.DisposeDeterministic synchronous cleanup capability, called at the end of a using scope.DivideInterface for the / operator.DropOwnership finalization capability.DynamicSafeMark a type as safe for runtime erasure.EqualMarker interface for total equality.ErrorRecoverable failure protocol.ExtendCollection extended from an iterable sequence.FloatMarker for the builtin float formats of any width.FloatDomainMarker for float literals and builtin float types.FromInfallible conversion from T.FromIteratorCollection built from an iterator.FromResidualTarget protocol for rebuilding a carrier from a propagated residual.HashA value that can feed itself into a hasher.HasherA stateful hash sink.IndexInterface for index access a[i].IndexSetInterface for index assignment a[i] = v.IntegerMarker for the builtin integer types of any width.IntegerDomainMarker for integer literals, intervals, and builtin integer types.IntoInfallible conversion into T.IterableA value that can produce an iterator.IteratorA protocol for producing a sequence of values.MultiplyInterface for the * operator.NegateInterface for unary -.NotInterface for the ~ operator.OneNumeric type with a multiplicative identity.OrInterface for the | operator.OverwriteStableMark a type as safe to overwrite through non-exclusive mutable access.PartialCompareInterface for partial comparison.PartialEqualInterface for partial equality.PlacementTensor placement descriptor.PlusInterface for unary +.PowerInterface for the ** operator.RangeBoundsCommon protocol for range bounds.RemainderInterface for the % operator.SequenceFinite ordered collection destructured by sequence patterns.SerializeValue that can serialize itself through S.SerializerStructured value serializer.ShardingAxisPer-axis placement descriptor used by a sharded tensor.SharedSafeMark a type as safe to store in shared space.ShiftLeftInterface for the << operator.ShiftRightInterface for the >> operator.ShiftRightUnsignedInterface for the >>> operator.StepProtocol for values that can advance through a range.SubtractInterface for the - operator.TensorFormatFormat implemented by owning tensor storage.TensorViewFormatFormat implemented by borrowed tensor views.ThisTypeMarker for contextual object this typing.ToOwnedOwned form of a borrowed value.TryProtocol for values that work with ?, ??, and postfix !.TryFromFallible conversion from T.TryIntoFallible conversion into T.UnpinMark a type as safe to move out of pinned storage.XorInterface for the ^ operator.ZeroNumeric type with an additive identity.ZeroableMark a type as valid when all bytes are zero.
Interfaces
AsyncReaderAsynchronous byte reader.AsyncReceiverAsynchronous receiver endpoint.AsyncSeekerAsynchronous seekable byte stream.AsyncSenderAsynchronous sender endpoint.AsyncWriterAsynchronous byte writer.ChannelOptionsChannel buffer options.ComputeBindingCompute binding family.ImportMetaMetadata about the current module and build configuration.ImportMetaEnvEnvironment variables available at compile time.ImportMetaTargetStructured target metadata.MemoryBindingMemory binding family.ModuleStatic configuration for one source module.ReceiverSynchronous receiver endpoint.SenderSynchronous sender endpoint.
Type aliases
AccessAccess mode for qualified storage.AwaitedRecursively unwrap promise-like values.BorrowedFieldsRebase each field of T into borrowed form.ByteOrderByte order for numeric encoding.BytesImmutable byte sequence.CapitalizeMap each string in S to capitalize its first character.CaptureDirectiveCapture directive value for the capture decorator.CaptureModeCapture mode for closure bindings.ColumnMajorFormatColumn-major dense tensor format.ComplexdDouble-precision complex number.ComplexfSingle-precision complex number.ConstructorParametersExtract the parameter tuple from a constructor type.DeriveWell-known derive considered automatically for nominal declarations.DiagnosticControlOptionsOptions for scoped diagnostic controls.DiagnosticIdA canonical diagnostic id.ExcludeRemove union members of T assignable to U.ExclusiveBorrowedExclusive borrowed access to T within lifetime L.ExclusiveBorrowedFieldsRebase each field of T into exclusive borrowed form.ExtractKeep union members of T assignable to U.FixedArrayFixed-size array alias.GeneratorResultThe union of generator yield and return results.GeneratorResumeOne consumer request delivered back into a generator body.HostThe target host environment that provides imports and ambient effects.InlineHintInline policy for a function.InstanceTypeExtract the instance type from a constructor type.JsonArrayJSON array value.JsonDeserializeValue that can be decoded from JSON.JsonObjectJSON object value.JsonPathSegmentJSON object key or array index.JsonReplacerFunction that transforms JSON values before serialization.JsonReviverFunction that transforms parsed JSON values.JsonSerializeValue that can encode itself as JSON.LaneCountReturn the number of lanes in Vector<T, N>.LaneOfReturn the element type in Vector<T, N>.LocalPlace T in local space.LocalFieldsRebase each field of T into local space.LowercaseMap each string in S to its lowercase form.ManagedFieldsRebase each field of T into managed form.MaskVector mask type.Matrix2dTwo-by-two double-precision matrix.Matrix2fTwo-by-two single-precision matrix.Matrix2iTwo-by-two signed integer matrix.Matrix3dThree-by-three double-precision matrix.Matrix3fThree-by-three single-precision matrix.Matrix3iThree-by-three signed integer matrix.Matrix4dFour-by-four double-precision matrix.Matrix4fFour-by-four single-precision matrix.Matrix4iFour-by-four signed integer matrix.MaybeOwnedReadonly borrowed or owned value.MutableFieldsMake each field of T mutable.NoInferBlock inference from this use of T.NonNullableRemove null and undefined from T.NumberFormatOptionsNumber locale formatting options.NumericAny sized machine scalar, excluding bigint.NumericDomainAny numeric literal, interval, or sized machine scalar, excluding bigint.OmitRemove fields K from T.OmitThisParameterRemove the explicit receiver from a callable type.OutputThe artifact produced by the current build target.OwnedFieldsRebase each field of T into owned form.OwnershipOwnership kind for qualified storage.PanicHookRuntime hook invoked before a panic starts unwinding.ParametersExtract the parameter tuple from a callable type.PartialMake each field of T optional.PickKeep fields K from T.PlacePlacement tag kind for qualified storage.PlatformThe target platform (OS) the code is being compiled for.PropertyKeyType of valid object property keys.QuaterniondDouble-precision quaternion.QuaternionfSingle-precision quaternion.RawFieldsRebase each field of T into raw pointer form.ReadonlyMake T deeply readonly.ReadonlyArrayReadonly view of a dynamic array.ReadonlyBorrowedReadonly borrowed access to T within lifetime L.ReadonlyBorrowedFieldsRebase each field of T into readonly borrowed form.RecordObject type with keys K and values V.RegExpGroupsNamed regular expression capture groups.RegExpIndexGroupsNamed spans for regular expression capture groups.RelativeRestore relative placement of T.RelativeFieldsRebase each field of T into relative placement.RepresentationRepresentation policy for a declaration.RepresentationOptionsRepresentation options for a declaration.RequiredMake each field of T required.ReturnTypeExtract the return type from a callable type.RowMajorFormatRow-major dense tensor format.RuntimeThe semantic runtime contract for the build.SharedPlace T in shared space.SharedFieldsRebase each field of T into shared space.SinkOptionsOptions for sink boundaries.SourceLocationSource location for a stack frame.SourceOptionsOptions for source boundaries.SpaceConcrete memory space tag kind.StackFrameOne frame in a stack trace.StackTraceStructured stack trace.StackTraceOptionsStack trace capture options.StageThe package release stage.StaticLifetimeBuiltin lifetime root for static storage.StringMatchMatch result from String.match.StringRawPartsRaw template string parts.StringReplacementReplacement value used by String.replace and String.replaceAll.TaintDomainBoundary domain where tainted data enters or leaves.TaintTagTaint label carried by a value.TargetFamilyCoarse target family metadata.ThisParameterTypeExtract the explicit receiver from a callable type.UncapitalizeMap each string in S to uncapitalize its first character.UnsignedThe unsigned builtin integer type with the same width as T.UntaintOptionsOptions for untaint boundaries.UppercaseMap each string in S to its uppercase form.Vector2dTwo-dimensional double-precision vector.Vector2fTwo-dimensional single-precision vector.Vector2iTwo-dimensional signed integer vector.Vector3dThree-dimensional double-precision vector.Vector3fThree-dimensional single-precision vector.Vector3iThree-dimensional signed integer vector.Vector4dFour-dimensional double-precision vector.Vector4fFour-dimensional single-precision vector.Vector4iFour-dimensional signed integer vector.
Functions
abortStop execution immediately without unwinding or cleanup.absoluteReturn elementwise absolute value.alignOfReturn the target-specific alignment of T.allReturn whether all selected boolean values are true.anyReturn whether any selected boolean value is true.argmaxReturn indices of maximum values along axis.argminReturn indices of minimum values along axis.assumeInitMove one initialized storage out as T.assumeInitDropDrop one initialized storage in place.assumeInitExclusiveReferenceBorrow one initialized storage with exclusive access.assumeInitReadCopy one initialized storage out without ending it.assumeInitReadonlyReferenceBorrow one initialized storage with readonly access.assumeInitReferenceBorrow one initialized storage.avgPoolReturn average-pooled values.bernoulliReturn values sampled from Bernoulli trials.bitAndReturn bitwise AND along the axes in axisSet.bitOrReturn bitwise OR along the axes in axisSet.bitXorReturn bitwise XOR along the axes in axisSet.breakpointTrigger a debugger breakpoint.broadcastBroadcast tensor to shape.captureStackTraceCapture a structured stack trace for the current Worker.castCast tensor elements to U by bit reinterpretation.choleskyReturn the Cholesky factorization.cloneClone bytes into immutable storage.compareCompare two byte sequences lexicographically.concatConcatenate tensors along axis.containsReturn whether bytes contains needle.convolutionConvolve input with kernel.cosReturn elementwise cosine.countReturn the number of non-overlapping occurrences of needle.decodeDecode typed JSON text.decodeUtf8Decode UTF-8 bytes as text.detReturn the determinant of a matrix.diagonalReturn the diagonal of a matrix.dotMultiply and reduce two tensors over configured axes.dropEnd ownership of value at this point.encodeEncode a typed value as JSON text.encodeJsonSerialize an already materialized JSON value.encodeUtf8Encode text as UTF-8 bytes.endsWithReturn whether bytes ends with suffix.equalReturn elementwise equality.equalTypesReturn true when two reflected types name the same normalized type.expReturn elementwise exponential.expandDimsInsert a length-one axis.extractReturn the lane at index.fillFill view with value.forgetEnd ownership of value without running its destructor.formatStackTraceFormat a structured stack trace as diagnostic text.gatherGather slices from operand.geluReturn Gaussian error linear activation.greaterReturn elementwise greater-than comparison.greaterEqualReturn elementwise greater-than-or-equal comparison.indexOfReturn the first index of needle.initAsExclusivePointerReturn an exclusive raw pointer to one storage.initAsPointerReturn a raw pointer to one storage.initNewCreate initialized storage for value.initUninitCreate uninitialized storage for T.initWriteInitialize one storage with value.initZeroedCreate zeroed storage for T.innerReturn the inner product of two vectors.insertReturn a vector with one lane replaced.inverseReturn the inverse of a matrix.joinJoin byte sequences with separator.lastIndexOfReturn the last index of needle.layerNormReturn layer-normalized values.layoutOfReturn the target-specific layout of T.lessReturn elementwise less-than comparison.lessEqualReturn elementwise less-than-or-equal comparison.loadLoad one tensor element from view.logReturn elementwise natural logarithm.logSoftmaxReturn log-softmax over one axis.matmulMatrix multiply rank-two tensors.maxReturn maximum values of tensor along the axes in axisSet.maxPoolReturn max-pooled values.meanReturn the mean of tensor along the axes in axisSet.minReturn minimum values of tensor along the axes in axisSet.negativeReturn elementwise negation.normReturn vector or matrix norm along axes.normalReturn values sampled from the standard normal distribution.notEqualReturn elementwise inequality.outerReturn the outer product of two vectors.padPad tensor.panicStop execution with a language panic.parseParse JSON text.productMultiply elements of tensor along the axes in axisSet.qrReturn the QR factorization.queueMicrotaskQueue one function after the active task finishes.readFloat32Read one 32-bit float.readFloat64Read one 64-bit float.readInt16Read one signed 16-bit integer.readInt32Read one signed 32-bit integer.readInt64Read one signed 64-bit integer.readUint16Read one unsigned 16-bit integer.readUint32Read one unsigned 32-bit integer.readUint64Read one unsigned 64-bit integer.reduceAddHorizontal reduction: sum all lanes.reduceAndHorizontal reduction: bitwise AND of all lanes.reduceMaxHorizontal reduction: maximum of all lanes.reduceMinHorizontal reduction: minimum of all lanes.reduceMulHorizontal reduction: multiply all lanes.reduceOrHorizontal reduction: bitwise OR of all lanes.reduceXorHorizontal reduction: bitwise XOR of all lanes.reformatCopy tensor data into a new format.reluReturn rectified linear activation.repeatRepeat bytes count times.replaceReplace destination and return its previous value.reshapeReshape tensor to shape.scatterScatter updates into operand.selectSelect tensor elements from thenValue or elseValue.setPanicHookInstall the runtime panic hook.shuffleShuffle vector lanes.sigmoidReturn logistic sigmoid activation.sinReturn elementwise sine.sizeOfReturn the target-specific size of T.sliceSlice tensor by window.softmaxReturn softmax over one axis.solveSolve a linear system.splatBuild a tensor by repeating value.splitSplit bytes around separator.splitAfterSplit bytes after each separator.sqrtReturn elementwise square root.squeezeRemove length-one axes.stackStack tensors along a new axis.startsWithReturn whether bytes starts with prefix.storeStore one tensor element into view.strideOfReturn the target-specific stride of T.stringifySerialize a JSON value.sumSum tensor along the axes in axisSet.svdReturn the singular value decomposition.swapExchange the values at left and right.takeReplace destination with its default value and return its previous value.takeHostErrorError bindings for runtime error propagation.takePanicHookRemove the runtime panic hook and return the previous hook.tanReturn elementwise tangent.todoStop execution because code is intentionally unfinished.traceReturn the trace of a matrix.transposeTranspose tensor by permutation.trapStop execution with a low-level runtime trap.trimAsciiTrim leading and trailing ASCII whitespace.trimAsciiEndTrim trailing ASCII whitespace.trimAsciiStartTrim leading ASCII whitespace.typeReturn the reflected type for T.typeOfReturn the reflected type for a value.uniformReturn values sampled uniformly from [0, 1).uniformRangeReturn values sampled uniformly from [low, high).unreachableMark this code path as unreachable.writeFloat32Write one 32-bit float.writeFloat64Write one 64-bit float.writeInt16Write one signed 16-bit integer.writeInt32Write one signed 32-bit integer.writeInt64Write one signed 64-bit integer.writeUint16Write one unsigned 16-bit integer.writeUint32Write one unsigned 32-bit integer.writeUint64Write one unsigned 64-bit integer.yieldNowYield the current fiber back to the Worker scheduler.
Constants
Extensions
ArithmeticExplicit overflow behaviors for builtin integer arithmetic.CastExplicit lossy conversions between builtin integer types.