Skip to content

Commit 0f5ff94

Browse files
authored
fix two obvious bugs. (NVIDIA#635)
1 parent b901312 commit 0f5ff94

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

FasterTransformer/v1/fastertransformer/common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616
#pragma once
17-
17+
#include <stdexcept>
1818
#include <iostream>
1919
#include <cuda_runtime.h>
2020
#include <cuda_fp16.h>

FasterTransformer/v1/fastertransformer/trt_plugin/trt_model.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class TRT_Transformer
6565
auto from_tensor = network->addInput(INPUT_BLOB_NAME, dtype_, nvinfer1::Dims2{seq_len_, hidden_dim_});
6666
auto mask_tensor = network->addInput(MASK_BLOB_NAME, dtype_, nvinfer1::Dims2{seq_len_, seq_len_});
6767

68-
assert(input_tensor);
68+
assert(from_tensor);
6969
assert(mask_tensor);
7070

7171
nvinfer1::ITensor* output_tensor = nullptr;

0 commit comments

Comments
 (0)