[FFI] Add new containers and Implementations#19685
Conversation
|
Hey @barry-jin , Thanks for submitting the PR
CI supported jobs: [clang, edge, website, windows-gpu, sanity, windows-cpu, unix-gpu, unix-cpu, centos-cpu, centos-gpu, miscellaneous] Note: |
|
@mxnet-bot run ci [unix-cpu, unix-gpu] |
|
Jenkins CI successfully triggered : [unix-cpu, unix-gpu] |
|
@mxnet-bot run ci [unix-cpu, unix-gpu] |
|
Jenkins CI successfully triggered : [unix-gpu, unix-cpu] |
|
After benchmarking on GluonNLP, I have got some improvements in the single forward step. I have pasted the average improvements as follows. (The latency is the average number with different batch_size, sequence_length as input)
Also, I have compared the Training and inferencing time with the real workloads:
Environment
|
|
@mxnet-bot run ci [windows-cpu, unix-gpu] |
|
Jenkins CI successfully triggered : [unix-gpu, windows-cpu] |
include/mxnet/runtime/packed_func.h
Outdated
| // } else if (type_code_ == kStr) { | ||
| // return std::string(value_.v_str); | ||
| // } else { | ||
| // CHECK(IsObjectRef<tvm::runtime::String>()); | ||
| // return AsObjectRef<tvm::runtime::String>().operator std::string(); | ||
| // } |
There was a problem hiding this comment.
Let's remove the unused code?
|
@mxnet-bot run ci [windows-cpu] |
|
Jenkins CI successfully triggered : [windows-cpu] |
|
@mxnet-bot run ci [windows-cpu] |
|
Jenkins CI successfully triggered : [windows-cpu] |
|
@mxnet-bot run ci [windows-cpu] |
|
Jenkins CI successfully triggered : [windows-cpu] |
|
@mxnet-bot run ci [windows-cpu] |
|
Jenkins CI successfully triggered : [windows-cpu] |
|
@mxnet-bot run ci [windows-cpu] |
|
Jenkins CI successfully triggered : [windows-cpu] |


Description
This is the follow up PR for RFC #19672. Map container is added and more data types are supported by new FFI, like dictionary, list of strings.
Checklist
Essentials