• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

daisytuner / docc / 26822635757

02 Jun 2026 01:23PM UTC coverage: 61.315% (+0.01%) from 61.302%
26822635757

Pull #725

github

web-flow
Merge c4b62464d into 887730e20
Pull Request #725: Tensor node backport

931 of 1617 new or added lines in 52 files covered. (57.58%)

92 existing lines in 33 files now uncovered.

35583 of 58033 relevant lines covered (61.32%)

11024.92 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

73.68
/sdfg/src/data_flow/library_nodes/math/tensor/elementwise_ops/relu_node.cpp
1
#include "sdfg/data_flow/library_nodes/math/tensor/elementwise_ops/relu_node.h"
2

3
#include "sdfg/analysis/analysis.h"
4
#include "sdfg/builder/structured_sdfg_builder.h"
5

6
#include "sdfg/analysis/scope_analysis.h"
7

8
#include "sdfg/data_flow/library_nodes/math/cmath/cmath_node.h"
9

10
namespace sdfg {
11
namespace math {
12
namespace tensor {
13

14
ReLUNode::ReLUNode(
15
    size_t element_id,
16
    const DebugInfo& debug_info,
17
    const graph::Vertex vertex,
18
    data_flow::DataFlowGraph& parent,
19
    const std::vector<symbolic::Expression>& shape,
20
    QuantizationType quantization,
21
    const data_flow::ImplementationType& impl_type
22
)
23
    : ElementWiseDataflowTensorNode(
19✔
24
          element_id, debug_info, vertex, parent, LibraryNodeType_ReLU, shape, "Y", {"X"}, quantization, impl_type
19✔
25
      ) {}
19✔
26

27
ElementWiseDataflowTensorNode::ElementOutput ReLUNode::expand_operation_dataflow(
28
    builder::StructuredSDFGBuilder& builder,
29
    analysis::AnalysisManager& analysis_manager,
30
    Block& block,
31
    std::vector<ElementInput>& needed_inputs,
32
    types::PrimitiveType expected_type
33
) {
4✔
34
    auto& input = needed_inputs.at(0);
4✔
35

36
    types::Scalar zero_type(input.required_type);
4✔
37
    auto& zero_node = builder.add_constant(block, "0.0", zero_type);
4✔
38

39
    auto& libnode =
4✔
40
        builder.add_library_node<cmath::CMathNode>(block, debug_info_, cmath::CMathFunction::fmax, input.required_type);
4✔
41
    input.consumer = &libnode;
4✔
42
    input.input_conn_index = 0;
4✔
43

44
    builder.add_computational_memlet(block, zero_node, libnode, "_in2", {}, zero_type);
4✔
45

46
    return {.producer = &libnode, .output_conn_index = 0, .type = input.required_type};
4✔
47
}
4✔
48

49
std::unique_ptr<data_flow::DataFlowNode> ReLUNode::
50
    clone(size_t element_id, const graph::Vertex vertex, data_flow::DataFlowGraph& parent) const {
×
NEW
51
    return std::unique_ptr<data_flow::DataFlowNode>(new ReLUNode(
×
NEW
52
        element_id, this->debug_info(), vertex, parent, this->shape_, fixed_quantization_, implementation_type_
×
NEW
53
    ));
×
UNCOV
54
}
×
55

56
} // namespace tensor
57
} // namespace math
58
} // namespace sdfg
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc