Home
last modified time | relevance | path

Searched refs:getUnsafePtr (Results 1 – 25 of 33) sorted by relevance

12

/dports/misc/glow/glow-f24d960e3cc80db95ac0bc17b1900dbf60ca044a/lib/LLVMIRCodeGen/
H A DLLVMCompiledFunction.cpp48 auto payload = PH.second.getUnsafePtr(); in loadPlaceholders()
68 auto addr = PH.second.getUnsafePtr(); in updatePlaceholders()
180 backingTensor->getUnsafePtr() + in translateTraceEvents()
184 backingTensor->getUnsafePtr() + in translateTraceEvents()
196 backingTensor->getUnsafePtr() + in translateTraceEvents()
H A DBundleSaver.cpp249 auto payload = c->getPayload().getUnsafePtr(); in saveWeights()
/dports/misc/glow/glow-f24d960e3cc80db95ac0bc17b1900dbf60ca044a/tests/unittests/
H A DGemmTest.cpp74 libjit_matmul_f((float *)out1.getUnsafePtr(), (float *)lhs.getUnsafePtr(), in testGemm()
75 (float *)rhs.getUnsafePtr(), out1.dims().data(), in testGemm()
H A DTensorPoolTest.cpp56 auto *backingPtr = T.getUnsafePtr(); in TEST()
62 EXPECT_EQ(T2.getUnsafePtr(), backingPtr); in TEST()
88 EXPECT_NE(T.getUnsafePtr(), T2.getUnsafePtr()); in TEST()
171 EXPECT_NE(T.getUnsafePtr(), T2.getUnsafePtr()); in TEST()
H A DTensorsTest.cpp76 EXPECT_EQ(T0.getUnsafePtr(), nullptr); in TEST()
77 EXPECT_EQ(T1.getUnsafePtr(), nullptr); in TEST()
78 EXPECT_EQ(T2.getUnsafePtr(), nullptr); in TEST()
87 Tensor T5(T4.getUnsafePtr(), &ty, T4.getSizeInBytes()); in TEST()
88 EXPECT_EQ(T4.getUnsafePtr(), T5.getUnsafePtr()); in TEST()
632 EXPECT_EQ(T2.getUnsafePtr(), T1.getUnsafePtr()); in TEST()
933 EXPECT_FLOAT_EQ(((float *)T.getUnsafePtr())[0], 7.1); in TEST()
941 EXPECT_FLOAT_EQ(((float *)T.getUnsafePtr())[0], 1.14); in TEST()
1292 Tensor T(partial.getUnsafePtr(), &paddedType, bytes); in TEST()
1320 char *oldPtr = assigned.getUnsafePtr(); in TEST()
[all …]
H A DTFLiteImporterTest.cpp45 file.read(tensor->getUnsafePtr(), tensor->getSizeInBytes()); in loadTensor()
H A DDeviceManagerTest.cpp203 Tensor virtualPaddedInput(input1.getUnsafePtr(), input->getType(), size); in TEST_P()
893 memcpy(locationContext, tensor.getUnsafePtr(), tensor.getSizeInBytes());
900 memcpy(tensor.getUnsafePtr(), tensor.getLocationContext(),
H A DGraphTest.cpp1729 EXPECT_EQ(originalT.getUnsafePtr(), unownedT.getUnsafePtr()); in TEST()
1773 EXPECT_NE(unownedCTM.getUnsafePtr(), originalCT.getUnsafePtr()); in TEST()
/dports/misc/glow/glow-f24d960e3cc80db95ac0bc17b1900dbf60ca044a/lib/Backends/Interpreter/
H A DInterpreterFunction.cpp97 backingTensor->getUnsafePtr() + in translateTraceEvents()
101 backingTensor->getUnsafePtr() + in translateTraceEvents()
113 backingTensor->getUnsafePtr() + in translateTraceEvents()
217 memcpy(paddedTensor.getUnsafePtr(), oldTensor->getUnsafePtr(), in execute()
H A DInterpreterNodes.cpp1945 &dataT->getUnsafePtr()[sampleStart + dataSliceSize * slice], in fwdGatherInstImpl()
1947 &outT->getUnsafePtr()[out_p]); in fwdGatherInstImpl()
2015 std::copy(&dataT->getUnsafePtr()[startOffset], in fwdGatherRangesInstImpl()
2016 &dataT->getUnsafePtr()[endOffset], &outT->getUnsafePtr()[outP]); in fwdGatherRangesInstImpl()
2070 std::copy(&slicesT->getUnsafePtr()[i * dataSliceSize], in fwdScatterDataInstCopyImpl()
2071 &slicesT->getUnsafePtr()[(i + 1) * dataSliceSize], in fwdScatterDataInstCopyImpl()
2072 &dataT->getUnsafePtr()[dataSliceSize * destDataIdx]); in fwdScatterDataInstCopyImpl()
4598 std::copy(defaultValue->getUnsafePtr(), in fwdSparseToDenseMaskInst()
4599 &defaultValue->getUnsafePtr()[valueSize], in fwdSparseToDenseMaskInst()
4612 std::copy(&values->getUnsafePtr()[posIn * valueSize], in fwdSparseToDenseMaskInst()
[all …]
/dports/misc/glow/glow-f24d960e3cc80db95ac0bc17b1900dbf60ca044a/lib/Base/
H A DTensorSerialization.cpp133 CHECK(tensor.getUnsafePtr()) in dumpTensorToBinaryFile()
141 fs.write(tensor.getUnsafePtr(), tensor.getSizeInBytes()); in dumpTensorToBinaryFile()
163 CHECK(tensor.getUnsafePtr()) in loadTensorFromBinaryFile()
178 fs.read(tensor.getUnsafePtr(), tensorSize); in loadTensorFromBinaryFile()
187 CHECK(tensor.getUnsafePtr()) in dumpTensorToTextFile()
240 CHECK(tensor.getUnsafePtr()) in loadTensorFromTextFile()
H A DIO.cpp34 nitems = fwrite(T.getUnsafePtr(), T.getType().getElementSize(), T.size(), fp); in writeToFile()
46 nitems = fread(T.getUnsafePtr(), T.getType().getElementSize(), T.size(), fp); in readFromFile()
/dports/misc/glow/glow-f24d960e3cc80db95ac0bc17b1900dbf60ca044a/lib/Backends/NNPI/
H A DNNPIResource.cpp214 hostPtr_ = users ? users->tensor->getUnsafePtr() : nullptr; in init()
402 char *tensorData = t->getUnsafePtr(); in postInference()
477 nnpiDeviceResourceSubLoad(deviceResource_, 0, t->getUnsafePtr(), in updateDeviceResourceFromTensor()
488 char *tensorData = t->getUnsafePtr(); in updateHostResourceFromTensor()
/dports/misc/glow/glow-f24d960e3cc80db95ac0bc17b1900dbf60ca044a/lib/Onnxifi/
H A DBase.cpp297 std::forward_as_tuple((void *)(zeroLengthSequence_.getUnsafePtr()), in adjustInputs()
315 memcpy(inputTensor.getUnsafePtr(), inOnnxBuffer, onnxBytes); in adjustInputs()
317 memset(inputTensor.getUnsafePtr() + onnxBytes, 0, in adjustInputs()
/dports/misc/glow/glow-f24d960e3cc80db95ac0bc17b1900dbf60ca044a/tools/loader/
H A DXModelBuilder.cpp224 std::memcpy(inputT->getUnsafePtr(), inputData.data(), inputData.size()); in runInference()
245 ioPlaceholders.second[keyval.first]->getUnsafePtr(), in runInference()
/dports/misc/glow/glow-f24d960e3cc80db95ac0bc17b1900dbf60ca044a/tests/benchmark/
H A DSLSBench.cpp196 int64_t *indicesRealPtr = (int64_t *)indicesReal.getUnsafePtr(); in addSLSNode()
217 Tensor indicesPartial(indicesReal_[i].back().getUnsafePtr(), in addSLSNode()
230 Tensor weightsPartial(weightsReal_[i].back().getUnsafePtr(), in addSLSNode()
H A DGatherBench.cpp122 int32_t *indicesRealPtr = (int32_t *)indicesReal.getUnsafePtr(); in addGatherNode()
127 Tensor indicesPartial(indicesReal_[i].back().getUnsafePtr(), in addGatherNode()
/dports/misc/glow/glow-f24d960e3cc80db95ac0bc17b1900dbf60ca044a/torch_glow/src/
H A DCachingGraphRunner.cpp351 assert(zeroLengthSequence_.getUnsafePtr()); in runImpl()
353 ph, glow::Tensor((void *)zeroLengthSequence_.getUnsafePtr(), ty)); in runImpl()
366 memcpy(inputTensor.getUnsafePtr(), ptTensor.data_ptr(), in runImpl()
369 memset(inputTensor.getUnsafePtr() + ptTensor.nbytes(), 0, in runImpl()
/dports/misc/glow/glow-f24d960e3cc80db95ac0bc17b1900dbf60ca044a/lib/Backends/Habana/
H A DHabanaFunction.cpp259 auto *host = reinterpret_cast<int64_t *>(T->getUnsafePtr()); in execute()
265 memcpy(eti.pTensorData, T->getUnsafePtr(), unpaddedSize); in execute()
H A DHabanaDeviceManager.cpp407 memcpy(tensor->getUnsafePtr(), *ioBufferDataOrErr, in runFunctionImpl()
/dports/misc/glow/glow-f24d960e3cc80db95ac0bc17b1900dbf60ca044a/lib/Backends/OpenCL/
H A DOpenCLDeviceManager.cpp542 size, T->getUnsafePtr(), in transferStaticPlaceholderToDevice()
583 auto buf = PH.second.getUnsafePtr(); in copyInputsToDevice()
623 auto buf = PH.second.getUnsafePtr(); in copyOutputsFromDevice()
H A DOpenCL.cpp1598 copyValueFromDevice(V, clBindings, T.getUnsafePtr()); in execute()
1642 copyValueFromDevice(srcDev, clBindings, srcT.getUnsafePtr()); in execute()
1651 copyValueToDevice(destDev, clBindings, destT.getUnsafePtr()); in execute()
1652 copyValueToDevice(indDev, clBindings, indT.getUnsafePtr()); in execute()
/dports/misc/glow/glow-f24d960e3cc80db95ac0bc17b1900dbf60ca044a/include/glow/Base/
H A DTensor.h823 char *getUnsafePtr() const { return getData(); } in getUnsafePtr() function
957 auto const *myData = getUnsafePtr(); in isBitwiseEqualImpl()
958 auto const *otherData = other.getUnsafePtr(); in isBitwiseEqualImpl()
1342 auto *data = reinterpret_cast<uint8_t *>(tensor_->getUnsafePtr()); \
/dports/misc/glow/glow-f24d960e3cc80db95ac0bc17b1900dbf60ca044a/lib/Importer/
H A DONNXModelLoader.cpp493 Tensor fullTensor(tensor->getUnsafePtr(), &fullType, in fillPlaceholders()
507 std::memcpy(fullTensor.getUnsafePtr(), tensor->getUnsafePtr(), in fillPlaceholders()
545 inStream.read(T->getUnsafePtr(), T->size() * sizeof(float)); in loadTensor()
554 inStream.read(T->getUnsafePtr(), T->size() * (sizeof(float) / 2)); in loadTensor()
563 inStream.read(T->getUnsafePtr(), T->size() * (sizeof(float) / 2)); in loadTensor()
579 inStream.read(T->getUnsafePtr(), T->size() * sizeof(int64_t)); in loadTensor()
592 inStream.read(T->getUnsafePtr(), T->size() * sizeof(int8_t)); in loadTensor()
605 inStream.read(T->getUnsafePtr(), T->size() * sizeof(int16_t)); in loadTensor()
630 inStream.read(T->getUnsafePtr(), T->size() * sizeof(int32_t)); in loadTensor()
643 inStream.read(T->getUnsafePtr(), T->size() * sizeof(uint8_t)); in loadTensor()
[all …]
/dports/misc/glow/glow-f24d960e3cc80db95ac0bc17b1900dbf60ca044a/examples/
H A Dfr2en.cpp115 if (!file.read(result.getUnsafePtr(), result.size() * sizeof(float))) { in loadMatrixFromFile()

12