File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ void getSegmentsOutputByRunning(
167
167
}
168
168
if (cur_ivalue.toTensor ().sizes ().size () == 0 ) {
169
169
// handle Scalar types, which has sizes of []
170
- input_shapes.push_back (util::toVec (util::toDims (c10::List<long int >({1 }))));
170
+ input_shapes.push_back (util::toVec (util::toDims (c10::List<int64_t >({1 }))));
171
171
} else {
172
172
input_shapes.push_back (util::toVec (util::toDims (cur_ivalue.toTensor ().sizes ())));
173
173
}
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ bool unload_library(void* custom_lib) {
35
35
bool success = false ;
36
36
#if defined(_WIN32)
37
37
// Returns status non-zero for success
38
- success = FreeLibrary (custom_lib) ? true : false ;
38
+ success = FreeLibrary ((HMODULE) custom_lib) ? true : false ;
39
39
#else
40
40
success = dlclose (custom_lib) ? false : true ;
41
41
#endif
Original file line number Diff line number Diff line change @@ -365,7 +365,7 @@ class TensorFormat {
365
365
* signifying a static input shape or a set of three input shapes representing
366
366
* the min, optiminal and max input shapes allowed for the engine.
367
367
*/
368
- struct TORCHTRT_API Input : torch::CustomClassHolder {
368
+ struct Input : torch::CustomClassHolder {
369
369
// / Minimum acceptable input size into the engine
370
370
std::vector<int64_t > min_shape;
371
371
// / Optimal input size into the engine (size optimized for given kernels accept any size in min max range)
@@ -520,7 +520,7 @@ struct TORCHTRT_API Input : torch::CustomClassHolder {
520
520
*
521
521
* This struct can either hold a complex inputs of shape or a flattened one,
522
522
*/
523
- struct TORCHTRT_API GraphInputs {
523
+ struct GraphInputs {
524
524
torch::jit::IValue input_signature; // nested Input, full input spec
525
525
std::vector<Input> inputs; // flatten input spec
526
526
};
@@ -592,14 +592,14 @@ struct CompileSpec {
592
592
*
593
593
* @param inputs
594
594
*/
595
- CompileSpec (std::vector<Input> inputs);
595
+ TORCHTRT_API CompileSpec (std::vector<Input> inputs);
596
596
597
597
/* *
598
598
* @brief Construct a new Compile Spec object from IValue which represents the nesting of input tensors for a module.
599
599
*
600
600
* @param input_signature
601
601
*/
602
- CompileSpec (torch::jit::IValue input_signature);
602
+ TORCHTRT_API CompileSpec (torch::jit::IValue input_signature);
603
603
// Defaults should reflect TensorRT defaults for BuilderConfig
604
604
605
605
/* *
You can’t perform that action at this time.
0 commit comments