MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / CreateTensor

Method CreateTensor

imperative/src/impl/basic_operators.cpp:36–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36CreateTensor::CreateTensor(
37 Kind kind, CompNode device, DType dtype, ValueShape shape, Format format)
38 : m_kind(kind),
39 m_device(device),
40 m_dtype(dtype),
41 m_shape(shape),
42 m_format(format) {}
43
44CreateTensor::CreateTensor(Kind kind, CompNode device, TensorLayout layout)
45 : m_kind(kind),

Callers

nothing calls this directly

Calls 4

fromFunction · 0.85
is_contiguousMethod · 0.45
is_emptyMethod · 0.45
to_stringMethod · 0.45

Tested by

no test coverage detected