/dports/misc/glow/glow-f24d960e3cc80db95ac0bc17b1900dbf60ca044a/lib/LLVMIRCodeGen/ |
H A D | LLVMCompiledFunction.cpp | 48 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 D | BundleSaver.cpp | 249 auto payload = c->getPayload().getUnsafePtr(); in saveWeights()
|
/dports/misc/glow/glow-f24d960e3cc80db95ac0bc17b1900dbf60ca044a/tests/unittests/ |
H A D | GemmTest.cpp | 74 libjit_matmul_f((float *)out1.getUnsafePtr(), (float *)lhs.getUnsafePtr(), in testGemm() 75 (float *)rhs.getUnsafePtr(), out1.dims().data(), in testGemm()
|
H A D | TensorPoolTest.cpp | 56 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 D | TensorsTest.cpp | 76 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 D | TFLiteImporterTest.cpp | 45 file.read(tensor->getUnsafePtr(), tensor->getSizeInBytes()); in loadTensor()
|
H A D | DeviceManagerTest.cpp | 203 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 D | GraphTest.cpp | 1729 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 D | InterpreterFunction.cpp | 97 backingTensor->getUnsafePtr() + in translateTraceEvents() 101 backingTensor->getUnsafePtr() + in translateTraceEvents() 113 backingTensor->getUnsafePtr() + in translateTraceEvents() 217 memcpy(paddedTensor.getUnsafePtr(), oldTensor->getUnsafePtr(), in execute()
|
H A D | InterpreterNodes.cpp | 1945 &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 D | TensorSerialization.cpp | 133 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 D | IO.cpp | 34 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 D | NNPIResource.cpp | 214 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 D | Base.cpp | 297 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 D | XModelBuilder.cpp | 224 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 D | SLSBench.cpp | 196 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 D | GatherBench.cpp | 122 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 D | CachingGraphRunner.cpp | 351 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 D | HabanaFunction.cpp | 259 auto *host = reinterpret_cast<int64_t *>(T->getUnsafePtr()); in execute() 265 memcpy(eti.pTensorData, T->getUnsafePtr(), unpaddedSize); in execute()
|
H A D | HabanaDeviceManager.cpp | 407 memcpy(tensor->getUnsafePtr(), *ioBufferDataOrErr, in runFunctionImpl()
|
/dports/misc/glow/glow-f24d960e3cc80db95ac0bc17b1900dbf60ca044a/lib/Backends/OpenCL/ |
H A D | OpenCLDeviceManager.cpp | 542 size, T->getUnsafePtr(), in transferStaticPlaceholderToDevice() 583 auto buf = PH.second.getUnsafePtr(); in copyInputsToDevice() 623 auto buf = PH.second.getUnsafePtr(); in copyOutputsFromDevice()
|
H A D | OpenCL.cpp | 1598 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 D | Tensor.h | 823 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 D | ONNXModelLoader.cpp | 493 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 D | fr2en.cpp | 115 if (!file.read(result.getUnsafePtr(), result.size() * sizeof(float))) { in loadMatrixFromFile()
|