KernelNode

Helpers & Utilities · AiDotNet.Tensors.Engines.Gpu.Graph

No summary documentation available yet.

Inheritance: ExecutionNode → KernelNode

Constructors

Constructor Summary
KernelNode(KernelType kernelType, Tensor<float>[] inputs, Tensor<float>[] outputs, Action<IDirectGpuBackend, IGpuStream> kernelAction, Dictionary<string, object> parameters)

Properties

Property Summary
ExecutionNodeType NodeType { get; }
IReadOnlyDictionary<string, object> Parameters { get; }
IReadOnlyList<Tensor<float>> InputTensors { get; }
IReadOnlyList<Tensor<float>> OutputTensors { get; }
KernelType KernelType { get; }
bool CanFuse { get; }
int EstimatedCost { get; }
string Name { get; }

Methods

Method Summary
ExecutionNode Clone()
KernelNode CreateActivation(Tensor<float> input, Tensor<float> output, FusedActivationType activation, Action<IDirectGpuBackend, IGpuStream> action)
KernelNode CreateElementWise(Tensor<float>[] inputs, Tensor<float> output, ElementWiseOp operation, Action<IDirectGpuBackend, IGpuStream> action)
KernelNode CreateGemm(Tensor<float> a, Tensor<float> b, Tensor<float> c, int m, int n, int k, float alpha, float beta, Action<IDirectGpuBackend, IGpuStream> action)
void Execute(IDirectGpuBackend backend)
void ExecuteAsync(IDirectGpuBackend backend, IGpuStream stream)