载入中...
搜索中...
未找到
Graph.h
浏览该文件的文档.
Optimized / scheduled graph ready to run with feeds.
Definition Graph.h:191
Tensor * run5(Tensor *in0, Tensor *in1, Tensor *in2, Tensor *in3, Tensor *in4)
Definition Graph.cpp:633
Tensor * run4(Tensor *in0, Tensor *in1, Tensor *in2, Tensor *in3)
Definition Graph.cpp:628
CompiledFunction()
int getPlaceholderCount() const
Definition Graph.h:204
~CompiledFunction()
Tensor * run3(Tensor *in0, Tensor *in1, Tensor *in2)
Definition Graph.cpp:623
Tensor * run6(Tensor *in0, Tensor *in1, Tensor *in2, Tensor *in3, Tensor *in4, Tensor *in5)
Definition Graph.cpp:638
static CompiledFunction * fromFunc(Func *fn)
Definition Graph.cpp:590
Trace builder — TF2 tf.function analogue (tf.func in scripts). While active, TF ops record into this ...
Definition Graph.h:125
Tensor * emitReduce(OpType type, const Tensor *x, int axis, bool keepDims)
Definition Graph.cpp:470
Tensor * emitPermute(const Tensor *x, const int *order, int rank)
Definition Graph.cpp:241
Tensor * input6(int d0, int d1, int d2, int d3, int d4, int d5)
Definition Graph.cpp:118
Tensor * emitResize2d(const Tensor *x, int outH, int outW, int mode)
Definition Graph.cpp:563
Tensor * emitConcat(const Tensor *const *ins, int n, int axis)
Definition Graph.cpp:418
Tensor * input5(int d0, int d1, int d2, int d3, int d4)
Definition Graph.cpp:112
Tensor * emitPool(OpType type, const Tensor *x, int ksize, int stride, int pad)
Definition Graph.cpp:384
Tensor * emitSdpa(const Tensor *q, const Tensor *k, const Tensor *v, const Tensor *mask, float scale)
Definition Graph.cpp:533
Tensor * emitBinary(OpType type, const Tensor *a, const Tensor *b)
Definition Graph.cpp:177
Tensor * emitSoftmax(const Tensor *x, int axis, bool logMode)
Definition Graph.cpp:271
Tensor * emitConv1d(const Tensor *x, const Tensor *w, const Tensor *bias, int stride, int pad)
Definition Graph.cpp:331
Tensor * emitTernary(OpType type, const Tensor *a, const Tensor *b, const Tensor *c)
Definition Graph.cpp:193
Tensor * emitFill(const int *dims, int rank, float value)
Definition Graph.cpp:148
Tensor * emitEmbedding(const Tensor *table, const Tensor *indices)
Definition Graph.cpp:400
Tensor * emitConv2d(const Tensor *x, const Tensor *w, const Tensor *bias, int stride, int pad)
Definition Graph.cpp:357
Tensor * emitArgMax(const Tensor *x, int axis, bool keepDims)
Definition Graph.cpp:496
Tensor * emitMatMul(const Tensor *a, const Tensor *b)
Definition Graph.cpp:206
Tensor * emitUnaryScalar(OpType type, const Tensor *x, float s0, float s1=0.f)
Definition Graph.cpp:165
Tensor * emitReshape(const Tensor *x, const int *dims, int rank)
Definition Graph.cpp:259
Tensor * emitSlice(const Tensor *x, int axis, int begin, int end)
Definition Graph.cpp:452
Tensor * emitUnary(OpType type, const Tensor *x)
Definition Graph.cpp:155
int ensureNode(const Tensor *t)
Ensure tensor is a node in this graph (Const-capture if eager).
Definition Graph.cpp:129
Tensor * emitLayerNorm(const Tensor *x, const Tensor *scale, const Tensor *bias, float eps)
Definition Graph.cpp:292
Tensor * emitRMSNorm(const Tensor *x, const Tensor *scale, float eps)
Definition Graph.cpp:314
Definition Graph.h:106
TF2-like namespace module. Script: tf <- eve.TF(); Default eager; tf.func() traces a graph for compil...
Definition TF.h:18
float32 / int32 tensor (rank 1–6), row-major. Eager: owns a buffer. Symbolic: node in a Func graph (n...
Definition Tensor.h:43
Definition CpuKernels.cpp:11
@ Float32
@ ReduceMin
@ Clamp
@ Divide
@ Resize2d
@ Conv2d
@ Sigmoid
@ MinimumScalar
@ ReduceMax
@ ScaledDotProductAttention
@ Softmax
@ ReduceMean
@ ArgMax
@ Flatten
@ PowScalar
@ RMSNorm
@ MatMul
@ ReduceSum
@ Placeholder
@ MulScalar
@ AvgPool2d
@ Const
@ MaxPool2d
@ Embedding
@ SubScalar
@ Reshape
@ MaximumScalar
@ Transpose
@ Where
@ DivScalar
@ LogSoftmax
@ LayerNorm
@ AddScalar
@ Slice
@ Concat
@ Multiply
@ Conv1d
@ Permute
Definition Graph.h:76