Skip to content
Snippets Groups Projects
Commit 9854cf7b authored by Hashim Sharif's avatar Hashim Sharif
Browse files

Adding missing dummy tensor utilities needed for NVDLA compilation

parent 87dcf884
No related branches found
No related tags found
No related merge requests found
......@@ -23,5 +23,8 @@ struct Tensor {
struct Dimension dims;
};
// NOTE: Currently only NCHW is supported due to limited cuDNN support
enum Tensor_format_t { nchw, nhwc };
#endif
......@@ -48,4 +48,40 @@ float computeAccuracy3(uint32_t *labels, void *result_ptr) {
}
// tensor_runtime.h empty definitions - for NVDLA-based compilation to work (functions not actually used)
void *create4DTensor(int data_type, int data_format, size_t dim1_size,
size_t dim2_size, size_t dim3_size, size_t dim4_size){
}
void startMemTracking(){
}
void freeBatchMemory(){
}
void hpvm_request_tensor(void *tensor, int destination){
}
void llvm_hpvm_initializeRuntimeController(const char *){
}
void llvm_hpvm_invokeRtControl(void *result,
const char *str,
int start,
int end){
}
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment