Skip to content

[CPP-RPC] Fix GetPath to use relative file path#12242

Merged
vinx13 merged 2 commits intoapache:mainfrom
yoyo-nb:cpp_rpc_fix_getpath
Aug 1, 2022
Merged

[CPP-RPC] Fix GetPath to use relative file path#12242
vinx13 merged 2 commits intoapache:mainfrom
yoyo-nb:cpp_rpc_fix_getpath

Conversation

@yoyo-nb
Copy link
Copy Markdown
Contributor

@yoyo-nb yoyo-nb commented Jul 30, 2022

The GetPath function can only use filenames as input, not relative paths.

Assuming the workpath is /data/local/tmp/rpc, and when I use GetPath("dataset/img.jpg"), the expected result is /data/local/tmp/rpc/dataset/img.jpg instead of dataset/img.jpg.

@junrushao
Copy link
Copy Markdown
Member

CC @FrozenGene who is the original author of CPP RPC

Comment thread apps/cpp_rpc/rpc_env.cc
@junrushao
Copy link
Copy Markdown
Member

Thanks @FrozenGene for taking time reviewing this PR!

@yoyo-nb
Copy link
Copy Markdown
Contributor Author

yoyo-nb commented Aug 1, 2022

There is a flaky test tests/python/unittest/test_custom_datatypes.py::test_myfloat seems to be unrelated to this PR.

@junrushao
Copy link
Copy Markdown
Member

Thanks for reporting! I retriggered the CI

@vinx13 vinx13 merged commit d2d3010 into apache:main Aug 1, 2022
xinetzone pushed a commit to daobook/tvm that referenced this pull request Nov 25, 2022
* [CPP-RPC] Fix GetPath to use relative file path

* change file_path to file_name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants