• 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

68.75
/sdfg/src/data_flow/library_nodes/math/tensor/elementwise_ops/sqrt_node.cpp
1
#include "sdfg/data_flow/library_nodes/math/tensor/elementwise_ops/sqrt_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
SqrtNode::SqrtNode(
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(
6✔
24
          element_id, debug_info, vertex, parent, LibraryNodeType_Sqrt, shape, "Y", {"X"}, quantization, impl_type
6✔
25
      ) {}
6✔
26

27
ElementWiseDataflowTensorNode::ElementOutput SqrtNode::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
    auto& tasklet = builder.add_library_node<
4✔
37
        math::cmath::CMathNode>(block, debug_info_, cmath::CMathFunction::sqrt, input.required_type);
4✔
38
    input.consumer = &tasklet;
4✔
39
    input.input_conn_index = 0;
4✔
40
    return {.producer = &tasklet, .output_conn_index = 0, .type = input.required_type};
4✔
41
}
4✔
42

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

50
} // namespace tensor
51
} // namespace math
52
} // 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