MCPcopy Create free account
hub / github.com/ciphermodelabs/ciphercore / permute_axes

Method permute_axes

ciphercore-base/src/graphs.rs:955–957  ·  view source on GitHub ↗

Adds a node to the parent graph that permutes the array associated with the node along given axes. Applies [Graph::permute_axes] to the parent graph, `this` node and `axes`. # Example ``` # use ciphercore_base::graphs::create_context; # use ciphercore_base::data_types::{INT32, array_type}; let c = create_context().unwrap(); let g = c.create_graph().unwrap(); let t = array_type(vec![3, 2, 3], IN

(&self, axes: ArrayShape)

Source from the content-addressed store, hash-verified

953 /// let n2 = n1.permute_axes(axes).unwrap();
954 /// ```
955 pub fn permute_axes(&self, axes: ArrayShape) -> Result<Node> {
956 self.get_graph().permute_axes(self.clone(), axes)
957 }
958
959 /// Adds a node to the parent graph that inverts a given permutation.
960 ///

Callers 15

test_permute_axes_workerFunction · 0.45
test_wellformed_casesFunction · 0.45
pull_out_bitsFunction · 0.45
put_in_bitsFunction · 0.45
interleaveFunction · 0.45
create_approximationFunction · 0.45
instantiateMethod · 0.45
instantiateMethod · 0.45
gen_multi_bit_sort_graphFunction · 0.45

Calls 3

cloneMethod · 0.80
add_nodeMethod · 0.80
get_graphMethod · 0.45

Tested by 4

test_permute_axes_workerFunction · 0.36
test_wellformed_casesFunction · 0.36