14class CompiledFunction;
26 ~TF()
override =
default;
32 void pushTrace(
Func *
f);
34 void popTrace(
Func *
f);
36 Func *tracing()
const;
42 Tensor *zeros2(
int d0,
int d1);
44 Tensor *zeros3(
int d0,
int d1,
int d2);
46 Tensor *zeros4(
int d0,
int d1,
int d2,
int d3);
48 Tensor *zeros5(
int d0,
int d1,
int d2,
int d3,
int d4);
50 Tensor *zeros6(
int d0,
int d1,
int d2,
int d3,
int d4,
int d5);
55 Tensor *ones2(
int d0,
int d1);
57 Tensor *ones3(
int d0,
int d1,
int d2);
59 Tensor *ones4(
int d0,
int d1,
int d2,
int d3);
61 Tensor *ones5(
int d0,
int d1,
int d2,
int d3,
int d4);
63 Tensor *ones6(
int d0,
int d1,
int d2,
int d3,
int d4,
int d5);
72 Tensor *fill4(
int d0,
int d1,
int d2,
int d3,
float value);
84 Tensor *randomUniform1(
int d0);
86 Tensor *randomUniform2(
int d0,
int d1);
88 Tensor *randomUniform3(
int d0,
int d1,
int d2);
90 Tensor *randomUniform4(
int d0,
int d1,
int d2,
int d3);
92 Tensor *randomNormal1(
int d0);
94 Tensor *randomNormal2(
int d0,
int d1);
96 Tensor *randomNormal3(
int d0,
int d1,
int d2);
98 Tensor *randomNormal4(
int d0,
int d1,
int d2,
int d3);
106 Tensor *
rand3(
int d0,
int d1,
int d2) {
return randomUniform3(d0, d1, d2); }
110 return randomUniform4(d0, d1, d2, d3);
117 Tensor *
randn3(
int d0,
int d1,
int d2) {
return randomNormal3(d0, d1, d2); }
121 return randomNormal4(d0, d1, d2, d3);
125 void setRandomSeed(uint32_t
seed);
127 uint32_t getRandomSeed()
const;
190 Tensor *permute5(
Tensor *
a,
int a0,
int a1,
int a2,
int a3,
int a4);
192 Tensor *permute6(
Tensor *
a,
int a0,
int a1,
int a2,
int a3,
int a4,
int a5);
202 Tensor *reshape5(
Tensor *
a,
int d0,
int d1,
int d2,
int d3,
int d4);
204 Tensor *reshape6(
Tensor *
a,
int d0,
int d1,
int d2,
int d3,
int d4,
int d5);
285 mutable uint32_t rngState_ = 1;
286 std::vector<Func *> traceStack_;
288 float nextUniform()
const;
289 float nextGaussian()
const;
290 Tensor *filled(
const int *dims,
int rank,
float value);
building::EdgeCurveGroup group
#define EVENGINE_API_DOMAINS
std::array< double, 10 > q
std::vector< std::uint32_t > indices
std::array< float, 3 > scale
EVENGINE_API_FOUNDATION public API.
Trace builder — TF2 tf.function analogue (tf.func in scripts). While active, TF ops record into this ...
TF2-like namespace module. Script: tf <- eve.TF(); Default eager; tf.func() traces a graph for compil...
Tensor * randn4(int d0, int d1, int d2, int d3)
Randn 4.
Tensor * maxAxis(Tensor *a, int axis, int keepDims)
Max axis.
Tensor * neg(Tensor *a)
Neg.
Tensor * rand3(int d0, int d1, int d2)
Rand 3.
Tensor * add(Tensor *a, Tensor *b)
Adds add.
Tensor * multiply(Tensor *a, Tensor *b)
Multiply.
Tensor * relu(Tensor *a)
Relu.
Tensor * rand4(int d0, int d1, int d2, int d3)
Rand 4.
Tensor * tanh(Tensor *a)
Tanh.
Tensor * exp(Tensor *a)
Exp.
Tensor * sigmoid(Tensor *a)
Sigmoid.
Tensor * gelu(Tensor *a)
Gelu.
Tensor * sumAxis(Tensor *a, int axis, int keepDims)
Sum axis.
Tensor * log(Tensor *a)
Log.
Tensor * abs(Tensor *a)
Abs.
Tensor * randn2(int d0, int d1)
Randn 2.
Tensor * sqrt(Tensor *a)
Sqrt.
Tensor * rand2(int d0, int d1)
Rand 2.
Tensor * meanAxis(Tensor *a, int axis, int keepDims)
Mean axis.
Tensor * minAxis(Tensor *a, int axis, int keepDims)
Min axis.
Tensor * rand1(int d0)
Rand 1.
Tensor * sub(Tensor *a, Tensor *b)
Sub.
~TF() override=default
Tf.
Tensor * randn3(int d0, int d1, int d2)
Randn 3.
Tensor * sin(Tensor *a)
Sin.
Tensor * cos(Tensor *a)
Cos.
Tensor * div(Tensor *a, Tensor *b)
Div.
Tensor * silu(Tensor *a)
Silu.
Tensor * randn1(int d0)
Randn 1.
float32 / int32 tensor (rank 1–6), row-major. Eager: owns a buffer. Symbolic: node in a Func graph (n...