MCPcopy Create free account
hub / github.com/MrNeRF/LichtFeld-Studio / empty

Method empty

src/core/tensor/tensor_factory.cpp:57–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55 }
56
57 Tensor Tensor::empty(TensorShape shape, Device device, DataType dtype, bool use_pinned) {
58 LoadArgs args;
59 args.shape = shape;
60 args.device = device;
61 args.dtype = dtype;
62 args.use_pinned = use_pinned;
63 args.args = std::monostate{};
64 return load(LoadOp::Empty, args);
65 }
66
67 Tensor Tensor::empty_unpinned(TensorShape shape, DataType dtype) {
68 LoadArgs args;

Callers 15

erase_from_cellFunction · 0.45
build_bhatt_lodFunction · 0.45
runMethod · 0.45
expand_nodeMethod · 0.45
random_chooseFunction · 0.45
median_ofFunction · 0.45
merge_voxel_groupsFunction · 0.45
unsubscribeMethod · 0.45
has_dirtyMethod · 0.45
end_batchMethod · 0.45
load_and_get_maskMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected