fix two obvious bugs. (#635)
This commit is contained in:
parent
b901312732
commit
0f5ff94854
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include <stdexcept>
|
||||
#include <iostream>
|
||||
#include <cuda_runtime.h>
|
||||
#include <cuda_fp16.h>
|
||||
|
|
|
@ -65,7 +65,7 @@ class TRT_Transformer
|
|||
auto from_tensor = network->addInput(INPUT_BLOB_NAME, dtype_, nvinfer1::Dims2{seq_len_, hidden_dim_});
|
||||
auto mask_tensor = network->addInput(MASK_BLOB_NAME, dtype_, nvinfer1::Dims2{seq_len_, seq_len_});
|
||||
|
||||
assert(input_tensor);
|
||||
assert(from_tensor);
|
||||
assert(mask_tensor);
|
||||
|
||||
nvinfer1::ITensor* output_tensor = nullptr;
|
||||
|
|
Loading…
Reference in a new issue