MCPcopy Create free account
hub / github.com/KomputeProject/kompute / OpTensorSyncDevice

Method OpTensorSyncDevice

src/OpTensorSyncDevice.cpp:7–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5namespace kp {
6
7OpTensorSyncDevice::OpTensorSyncDevice(
8 const std::vector<std::shared_ptr<Tensor>>& tensors)
9{
10 KP_LOG_DEBUG("Kompute OpTensorSyncDevice constructor with params");
11
12 if (tensors.size() < 1) {
13 throw std::runtime_error(
14 "Kompute OpTensorSyncDevice called with less than 1 tensor");
15 }
16
17 this->mTensors = tensors;
18}
19
20OpTensorSyncDevice::~OpTensorSyncDevice()
21{

Callers 15

test_end_to_endFunction · 0.80
test_shader_strFunction · 0.80
test_sequenceFunction · 0.80
test_pushconstsFunction · 0.80
test_pushconsts_intFunction · 0.80
test_workgroupFunction · 0.80
test_logistic_regressionFunction · 0.80
test_type_floatFunction · 0.80
test_type_doubleFunction · 0.80
test_type_intFunction · 0.80

Calls 1

sizeMethod · 0.80

Tested by 13

test_end_to_endFunction · 0.64
test_shader_strFunction · 0.64
test_sequenceFunction · 0.64
test_pushconstsFunction · 0.64
test_pushconsts_intFunction · 0.64
test_workgroupFunction · 0.64
test_logistic_regressionFunction · 0.64
test_type_floatFunction · 0.64
test_type_doubleFunction · 0.64
test_type_intFunction · 0.64