| 1528 | |
| 1529 | template <typename LhsScalar, typename RhsScalar, typename SpecType> |
| 1530 | void 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 | |
| 1542 | inline int GetIntEnvVarOrZero(const char* name) { |
| 1543 | const char* val = getenv(name); |
nothing calls this directly
no test coverage detected