MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / MakeSpec

Method MakeSpec

tensorflow/lite/experimental/ruy/test.h:1530–1540  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1528
1529template <typename LhsScalar, typename RhsScalar, typename SpecType>
1530void TestSet<LhsScalar, RhsScalar, SpecType>::MakeSpec() {
1531 RUY_CHECK(life_stage == LifeStage::kHasLhsRhs);
1532
1533 if (!getenv("BENCHMARK_ONLY_MATMUL") && (global_random_engine()() & 1)) {
1534 MakeRandomVector(RandomRange::kBias, rows, &bias_data);
1535 spec.bias = bias_data.data();
1536 }
1537 MakeSpecMultiplierFieldsImpl<TestSet>::Run(this);
1538 MakeSpecClampFields(lhs.matrix, rhs.matrix, dst_zero_point, &spec);
1539 life_stage = LifeStage::kHasSpec;
1540}
1541
1542inline int GetIntEnvVarOrZero(const char* name) {
1543 const char* val = getenv(name);

Callers

nothing calls this directly

Calls 4

MakeRandomVectorFunction · 0.85
MakeSpecClampFieldsFunction · 0.85
RunFunction · 0.50
dataMethod · 0.45

Tested by

no test coverage detected