|
|
|
@ -27,10 +27,10 @@
|
|
|
|
|
#include "include/api/context.h"
|
|
|
|
|
#include "include/api/types.h"
|
|
|
|
|
#include "include/api/serialization.h"
|
|
|
|
|
#include "include/minddata/dataset/include/vision.h"
|
|
|
|
|
#include "include/minddata/dataset/include/vision_ascend.h"
|
|
|
|
|
#include "include/minddata/dataset/include/execute.h"
|
|
|
|
|
|
|
|
|
|
#include "../inc/utils.h"
|
|
|
|
|
#include "inc/utils.h"
|
|
|
|
|
|
|
|
|
|
using mindspore::GlobalContext;
|
|
|
|
|
using mindspore::Serialization;
|
|
|
|
@ -42,7 +42,7 @@ using mindspore::GraphCell;
|
|
|
|
|
using mindspore::kSuccess;
|
|
|
|
|
using mindspore::MSTensor;
|
|
|
|
|
using mindspore::dataset::Execute;
|
|
|
|
|
using mindspore::dataset::vision::DvppDecodeResizeCropJpeg;
|
|
|
|
|
using mindspore::dataset::vision::DvppDecodeResizeJpeg;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DEFINE_string(mindir_path, "", "mindir path");
|
|
|
|
@ -84,7 +84,7 @@ int main(int argc, char **argv) {
|
|
|
|
|
|
|
|
|
|
std::map<double, double> costTime_map;
|
|
|
|
|
size_t size = all_files.size();
|
|
|
|
|
Execute resize_op(DvppDecodeResizeCropJpeg({640, 640}, {640, 640}));
|
|
|
|
|
Execute resize_op(std::shared_ptr<DvppDecodeResizeJpeg>(new DvppDecodeResizeJpeg({640, 640})));
|
|
|
|
|
for (size_t i = 0; i < size; ++i) {
|
|
|
|
|
struct timeval start = {0};
|
|
|
|
|
struct timeval end = {0};
|
|
|
|
|