Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/contrib/tf_op/tvm_dso_op_kernels.cc
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ class TVMDSOOpTrait<GPUDevice> {
tensorflow::int64* dims = new tensorflow::int64[num_dims];
cudaMemcpy(dims, flat, sizeof(tensorflow::int64) * num_dims, cudaMemcpyDeviceToHost);
tensorflow::TensorShapeUtils::MakeShape(dims, num_dims, output_shape);
delete dims;
delete[] dims;
}
};
#endif
Expand Down
8 changes: 4 additions & 4 deletions src/target/metadata.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,11 @@ class InMemoryMetadataNode : public ::tvm::target::metadata::VisitableMetadataNo
}

private:
::std::unique_ptr<struct TVMTensorInfo> inputs_;
::std::unique_ptr<struct TVMTensorInfo[]> inputs_;
std::vector<::tvm::runtime::metadata::TensorInfo> inputs_objs_;
::std::unique_ptr<struct TVMTensorInfo> outputs_;
::std::unique_ptr<struct TVMTensorInfo[]> outputs_;
std::vector<::tvm::runtime::metadata::TensorInfo> outputs_objs_;
::std::unique_ptr<struct TVMTensorInfo> pools_;
::std::unique_ptr<struct TVMTensorInfo[]> pools_;
std::vector<::tvm::runtime::metadata::TensorInfo> pools_objs_;
::std::string mod_name_;
struct ::TVMMetadata storage_;
Expand Down Expand Up @@ -186,7 +186,7 @@ class InMemoryTensorInfoNode : public ::tvm::target::metadata::VisitableTensorIn

private:
::std::string name_;
::std::unique_ptr<int64_t> shape_;
::std::unique_ptr<int64_t[]> shape_;
struct ::TVMTensorInfo storage_;
};

Expand Down