-
Notifications
You must be signed in to change notification settings - Fork 74k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extend TF:TRT C++ API to handle non-frozen models #53082
Extend TF:TRT C++ API to handle non-frozen models #53082
Conversation
495a2c2
to
e8e7ccf
Compare
e8e7ccf
to
c3db9ec
Compare
@tfeher could you please resolve conflicts ? |
c3db9ec
to
685920e
Compare
Conflicts resolved, tagging @bixia1 for review. |
685920e
to
14ce1e5
Compare
@bixia1 Can you please review this PR ? Thanks! |
@tfeher Can you please address Ubuntu Sanity errors? Thanks! |
14ce1e5
to
2c403ea
Compare
Addressed sanity errors. Also rebased and fixed missing argument that was introduced in #53507. |
2c403ea
to
8d12421
Compare
8d12421
to
f29248f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bixia1 I have fixed the issue. Let me know if you have a different suggestion for resolving the cycle.
filegroup( | ||
name = "headers", | ||
srcs = [ | ||
"trt_convert_api.h", | ||
], | ||
) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This filegroup is not used?
@@ -370,7 +384,6 @@ cc_library( | |||
name = "trt_op_libs", | |||
deps = [ | |||
":get_calibration_data_op_op_lib", | |||
":trt_convert_api", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you pass tensorflow/compiler/tf2tensorrt:convert_qdq_test_gpu?
I got this error: third_party/tensorflow/compiler/tf2tensorrt/convert/ops/quantization_ops_test.cc:33:10: fatal error: 'third_party/tensorflow/compiler/tf2tensorrt/trt_convert_api.h' file not found
#include "third_party/tensorflow/compiler/tf2tensorrt/trt_convert_api.h"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -19,6 +19,7 @@ limitations under the License. | |||
#include <string> | |||
#include <vector> | |||
|
|||
#include "tensorflow/cc/saved_model/loader.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I need to remove this line, and instead just add a forward declaration
struct SavedModelBundle;
This PR extends the C++ converter API of TF-TRT #52012 to handle models that are not frozen (i.e. contains variables).
Depends on #53310 . Tracker #45481.