Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for GetQint8Tensor (0.12 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/utils/tf_type_utils_test.cc

    #include "tensorflow/core/framework/types.pb.h"
    #include "tensorflow/core/ir/types/dialect.h"
    #include "tsl/framework/numeric_types.h"
    
    namespace mlir::quant::tensorflow {
    namespace {
    
    std::string GetQint8Tensor() {
      ::tensorflow::Tensor tensor(::tensorflow::DT_QINT8, {2, 2});
      tensor.matrix<tsl::qint8>()(0, 0) = tsl::qint8(1);
      tensor.matrix<tsl::qint8>()(0, 1) = tsl::qint8(2);
      tensor.matrix<tsl::qint8>()(1, 0) = tsl::qint8(3);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9K bytes
    - Viewed (0)
Back to top