Skip to content
Snippets Groups Projects

[MIN][DSGN] encapsulating raw pointer access into an helper function in order...

Merged laurent soulier requested to merge fix/rawPtr into master
All threads resolved!
49 files
+ 124
53
Compare changes
  • Side-by-side
  • Inline
Files
49
+ 23
0
 
/********************************************************************************
 
* Copyright (c) 2023 CEA-List
 
*
 
* This program and the accompanying materials are made available under the
 
* terms of the Eclipse Public License 2.0 which is available at
 
* http://www.eclipse.org/legal/epl-2.0.
 
*
 
* SPDX-License-Identifier: EPL-2.0
 
*
 
********************************************************************************/
 
 
#ifndef AIDGE_CPU_DATA_GETCPUPTR_H_
 
#define AIDGE_CPU_DATA_GETCPUPTR_H_
 
 
#include "aidge/data/Tensor.hpp"
 
 
namespace Aidge {
 
inline void *getCPUPtr(std::shared_ptr<Aidge::Data> const &data) {
 
return std::static_pointer_cast<Tensor>(data)->getImpl()->rawPtr();
 
}
 
} // namespace Aidge
 
 
#endif // AIDGE_CPU_DATA_GETCPUPTR_H_
 
\ No newline at end of file
Loading