You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tests(//tests): Implementing tests to check new input class behavior
This commits adds tests for the new Input class including verifying that
default behavior works properly
It also moves tests out module and into cpp for cpp api tests
Signed-off-by: Naren Dasan <[email protected]>
Signed-off-by: Naren Dasan <[email protected]>
[[deprecated("trtorch::CompileSpec::CompileSpec(std::vector<InputRange> input_ranges) is being deprecated in favor of trtorch::CompileSpec::CompileSpec(std::vector<Input> inputs). trtorch::CompileSpec::CompileSpec(std::vector<InputRange> input_ranges) will be removed in TRTorch v0.5.0")]]
571
+
[[deprecated("trtorch::CompileSpec::CompileSpec(std::vector<InputRange> input_ranges) is being deprecated in favor of trtorch::CompileSpec::CompileSpec(std::vector<Input> inputs). Please use CompileSpec(std::vector<Input> inputs). trtorch::CompileSpec::CompileSpec(std::vector<InputRange> input_ranges) will be removed in TRTorch v0.5.0")]]
* Convienence constructor to set fixed input size from vectors describing
520
576
* size of input tensors. Each entry in the vector represents a input and
521
577
* should be provided in call order.
522
578
*
579
+
* This constructor should be use as a convience in the case that all inputs are static sized and
580
+
* you are okay with default input dtype and formats (FP32 for FP32 and INT8 weights, FP16 for FP16 weights, contiguous)
581
+
*
523
582
* @param fixed_sizes
524
583
*/
525
-
[[deprecated("trtorch::CompileSpec::InputRange is being deprecated in favor of trtorch::CompileSpec::Input. trtorch::CompileSpec::InputRange will be removed in TRTorch v0.5.0")]]
* Convienence constructor to set fixed input size from c10::ArrayRef's (the
530
589
* output of tensor.sizes()) describing size of input tensors. Each entry in
531
590
* the vector represents a input and should be provided in call order.
591
+
*
592
+
* This constructor should be use as a convience in the case that all inputs are static sized and
593
+
* you are okay with default input dtype and formats (FP32 for FP32 and INT8 weights, FP16 for FP16 weights, contiguous)
594
+
*
532
595
* @param fixed_sizes
533
596
*/
534
-
[[deprecated("trtorch::CompileSpec::InputRange is being deprecated in favor of trtorch::CompileSpec::Input. trtorch::CompileSpec::InputRange will be removed in TRTorch v0.5.0")]]
0 commit comments