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

daisytuner / docc / 26831349290

02 Jun 2026 03:50PM UTC coverage: 61.29% (-0.01%) from 61.302%
26831349290

Pull #725

github

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

932 of 1642 new or added lines in 52 files covered. (56.76%)

92 existing lines in 33 files now uncovered.

35584 of 58058 relevant lines covered (61.29%)

11020.18 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/pow_node.cpp
1
#include "sdfg/data_flow/library_nodes/math/tensor/elementwise_ops/pow_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
PowNode::PowNode(
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(
4✔
24
          element_id, debug_info, vertex, parent, LibraryNodeType_Pow, shape, "C", {"A", "B"}, quantization, impl_type
4✔
25
      ) {}
4✔
26

27
ElementWiseDataflowTensorNode::ElementOutput PowNode::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& input0 = needed_inputs.at(0);
4✔
35
    auto& input1 = needed_inputs.at(1);
4✔
36

37
    auto& libnode =
4✔
38
        builder.add_library_node<cmath::CMathNode>(block, debug_info_, cmath::CMathFunction::pow, input0.required_type);
4✔
39
    input0.consumer = &libnode;
4✔
40
    input0.input_conn_index = 0;
4✔
41
    input1.consumer = &libnode;
4✔
42
    input1.input_conn_index = 1;
4✔
43
    return {.producer = &libnode, .output_conn_index = 0, .type = input0.required_type};
4✔
44
}
4✔
45

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

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

© 2026 Coveralls, Inc