MCPcopy Create free account
hub / github.com/cactus-compute/cactus / pow

Method pow

cactus/graph/graph_builder.cpp:66–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66size_t CactusGraph::pow(size_t input, float exponent) {
67 const auto& input_buffer = get_output_buffer(input);
68 OpParams params{.scalar = exponent, .output_precision = input_buffer.precision};
69 return add_node(OpType::POW, {input}, input_buffer.shape, params);
70}
71
72size_t CactusGraph::view(size_t input, const std::vector<size_t>& new_shape) {
73 const auto& input_buffer = get_output_buffer(input);

Callers 1

cactus_graph_powFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected