• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In
Build has been canceled!

daisytuner / docc / 26812260585

02 Jun 2026 08:49AM UTC coverage: 60.823% (-0.05%) from 60.869%
26812260585

Pull #725

github

web-flow
Merge eceff48b9 into cd25c9278
Pull Request #725: Tensor node backport

599 of 1255 new or added lines in 51 files covered. (47.73%)

541 existing lines in 46 files now uncovered.

35094 of 57699 relevant lines covered (60.82%)

11078.43 hits per line

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

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

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

7
namespace sdfg {
8
namespace math {
9
namespace tensor {
10

11
SubNode::SubNode(
12
    size_t element_id,
13
    const DebugInfo& debug_info,
14
    const graph::Vertex vertex,
15
    data_flow::DataFlowGraph& parent,
16
    const std::vector<symbolic::Expression>& shape,
17
    QuantizationType quantization,
18
    const data_flow::ImplementationType& impl_type
19
)
20
    : ElementWiseDataflowTensorNode(
6✔
21
          element_id, debug_info, vertex, parent, LibraryNodeType_Sub, shape, "C", {"A", "B"}, quantization, impl_type
6✔
22
      ) {}
6✔
23

24
ElementWiseDataflowTensorNode::ElementOutput SubNode::expand_operation_dataflow(
25
    builder::StructuredSDFGBuilder& builder,
26
    analysis::AnalysisManager& analysis_manager,
27
    Block& block,
28
    std::vector<ElementInput>& needed_inputs,
29
    types::PrimitiveType expected_type
30
) {
4✔
31
    auto& input0 = needed_inputs.at(0);
4✔
32

33
    data_flow::TaskletCode opcode;
4✔
34
    if (types::is_integer(input0.required_type)) {
4✔
NEW
35
        opcode = data_flow::TaskletCode::int_sub;
×
36
    } else {
4✔
37
        opcode = data_flow::TaskletCode::fp_sub;
4✔
38
    }
4✔
39
    auto& tasklet = builder.add_tasklet(block, opcode, "_out", {"_in1", "_in2"});
4✔
40
    input0.consumer = &tasklet;
4✔
41
    input0.input_conn_index = 0;
4✔
42
    needed_inputs.at(1).consumer = &tasklet;
4✔
43
    needed_inputs.at(1).input_conn_index = 1;
4✔
44
    return {.producer = &tasklet, .output_conn_index = 0, .type = input0.required_type};
4✔
45
}
4✔
46

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

54
} // namespace tensor
55
} // namespace math
56
} // 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