MCPcopy Create free account
hub / github.com/ml-explore/mlx / array

Method array

mlx/array.h:533–539  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

531
532template <typename It>
533array::array(
534 It data,
535 Shape shape,
536 Dtype dtype /* = TypeToDtype<typename std::iterator_traits<It>::value_type>() */) :
537 array_desc_(std::make_shared<ArrayDesc>(std::move(shape), dtype)) {
538 init(data);
539}
540
541template <typename T>
542array::array(

Callers 15

create_alibi_slopeMethod · 0.60
__init__Method · 0.60
learning_rateMethod · 0.60
_maybe_scheduleMethod · 0.60
test_op_on_deviceMethod · 0.60
test_op_on_streamMethod · 0.60
test_numpy_convMethod · 0.60
run_conv2DMethod · 0.60
test_get_and_set_itemMethod · 0.60

Calls 4

sizeFunction · 0.85
initFunction · 0.50
sizeMethod · 0.45
beginMethod · 0.45

Tested by 15

test_op_on_deviceMethod · 0.48
test_op_on_streamMethod · 0.48
test_numpy_convMethod · 0.48
run_conv2DMethod · 0.48
test_get_and_set_itemMethod · 0.48
test_type_promotionMethod · 0.48
test_lapackMethod · 0.48
check_eigs_and_vecsMethod · 0.48
test_conversionMethod · 0.48