MCPcopy Create free account
hub / github.com/apple/coremltools / squeeze

Method squeeze

deps/pybind11/include/pybind11/numpy.h:1044–1047  ·  view source on GitHub ↗

Return a new view with all of the dimensions of length 1 removed

Source from the content-addressed store, hash-verified

1042
1043 /// Return a new view with all of the dimensions of length 1 removed
1044 array squeeze() {
1045 auto &api = detail::npy_api::get();
1046 return reinterpret_steal<array>(api.PyArray_Squeeze_(m_ptr));
1047 }
1048
1049 /// Resize array to given shape
1050 /// If refcheck is true and more that one reference exist to this array

Callers 15

validateSqueezeLayerMethod · 0.80
quantize_weight_by_dtypeFunction · 0.80
find_indices_for_lutFunction · 0.80
calculate_qparamsMethod · 0.80
calculate_qparamsMethod · 0.80
_get_cluster_avgMethod · 0.80
_kmeans_ppMethod · 0.80
compress_uniqueMethod · 0.80
test_observer_fixed_dataFunction · 0.80
_compare_shapesMethod · 0.80
_test_shape_equalityMethod · 0.80

Calls 1

getFunction · 0.50

Tested by 15

test_observer_fixed_dataFunction · 0.64
_compare_shapesMethod · 0.64
_test_shape_equalityMethod · 0.64
test_embedding_nd_cpuMethod · 0.64
test_squeeze_allMethod · 0.64
_to_rank_4Method · 0.64
_from_rank_4Method · 0.64
_compare_shapesMethod · 0.64
buildMethod · 0.64
test_pytorch_parityMethod · 0.64