diff --git a/src/graph/GraphView.cpp b/src/graph/GraphView.cpp index e1a520865e38b50bbae268b72d420f947ba6885f..fab9be91556c5ffc0bd446edcbc5abb80e99a1bb 100644 --- a/src/graph/GraphView.cpp +++ b/src/graph/GraphView.cpp @@ -266,7 +266,12 @@ void Aidge::GraphView::logOutputs(const std::string& dirName) const { AIDGE_THROW_OR_ABORT(std::runtime_error, "Could not create graph view log file: {}", inputPath); } - fmt::print(fp.get(), "{}\n", nodePtr->getOperator()->getRawOutput(outIdx)->toString().c_str()); + + auto oTensor = std::static_pointer_cast<OperatorTensor>(nodePtr->getOperator())->getOutput(outIdx); + std::shared_ptr<Tensor> fallback; + const Tensor& localTensor = oTensor->refFrom(fallback, "cpu"); + + fmt::print(fp.get(), "{}\n", localTensor.toString().c_str()); } } }