Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hpvm-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
llvm
hpvm-release
Commits
a3dbbf8d
Commit
a3dbbf8d
authored
3 years ago
by
Hashim Sharif
Browse files
Options
Downloads
Patches
Plain Diff
fixing tensorutils definitions to return void*
parent
ec7df083
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hpvm/include/nvdla/tensorUtils.h
+6
-6
6 additions, 6 deletions
hpvm/include/nvdla/tensorUtils.h
with
6 additions
and
6 deletions
hpvm/include/nvdla/tensorUtils.h
+
6
−
6
View file @
a3dbbf8d
...
...
@@ -15,9 +15,9 @@ std::string model_params_path = "../../test/dnn_benchmarks/model_params/";
__attribute__
((
noinline
))
struct
Tensor
*
readTrainedWeights
(
const
char
*
file_name
,
int
data_type
,
long
int
dim1_size
,
long
int
dim2_size
,
long
int
dim3_size
,
long
int
dim4_size
)
{
__attribute__
((
noinline
))
void
*
readTrainedWeights
(
const
char
*
file_name
,
int
data_type
,
long
int
dim1_size
,
long
int
dim2_size
,
long
int
dim3_size
,
long
int
dim4_size
)
{
int
type_size
=
4
;
// NOTE: Assuming floating point tensors
long
int
num_elems
=
dim1_size
*
dim2_size
*
dim3_size
*
dim4_size
;
...
...
@@ -45,9 +45,9 @@ __attribute__((noinline)) struct Tensor *readTrainedWeights(const char *file_nam
}
__attribute__
((
noinline
))
struct
Tensor
*
readInputBatch
(
const
char
*
file_name
,
long
data_type
,
long
start
,
long
end
,
long
dim2_size
,
long
dim3_size
,
long
dim4_size
)
{
__attribute__
((
noinline
))
void
*
readInputBatch
(
const
char
*
file_name
,
long
data_type
,
long
start
,
long
end
,
long
dim2_size
,
long
dim3_size
,
long
dim4_size
)
{
long
int
dim1_size
=
end
-
start
;
// FIXIT: Don't assume floating point types
long
int
type_size
=
4
;
// NOTE: Assuming floating point tensors
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment