Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 131 for constexpr (0.2 sec)

  1. tensorflow/compiler/mlir/quantization/common/lift_as_function_call_test.cc

    using ::testing::SizeIs;
    using ::testing::StrEq;
    using ::tsl::protobuf::util::MessageDifferencer;
    using ::tsl::testing::IsOk;
    using ::tsl::testing::StatusIs;
    
    using LiftAsFunctionCallTest = QuantizationTestBase;
    
    constexpr absl::string_view kModuleLifted = R"mlir(
      module {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/utils/tftext_utils.cc

    #include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.h"
    
    namespace mlir {
    namespace TFL {
    
    namespace {
    
    constexpr char kNgrams[] = "tftext:Ngrams";
    constexpr char kWhitespaceTokenizer[] = "tftext:WhitespaceTokenizer";
    constexpr char kCustomSgnnProjection[] = "tftext:custom:SgnnProjection";
    constexpr char kTFImplements[] = "tf._implements";
    
    using mlir::TF::FuncAttr;
    using mlir::TF::StringType;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/cc/constant_fold_test.cc

    namespace quant {
    namespace {
    
    using ::testing::NotNull;
    using ::testing::SizeIs;
    
    using ConstantFoldingTest = ::mlir::quant::QuantizationTestBase;
    
    TEST_F(ConstantFoldingTest, FoldLargeConstant) {
      constexpr absl::string_view kModuleCode = R"mlir(
        module {
          func.func @test_fold_constant() -> (tensor<1024x24x24x3xf32>) {
            %zp = "tf.Const"() {value = dense<2> : tensor<i32>} : () -> tensor<i32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 04 07:19:09 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/transforms/prepare_composite_functions_tf.cc

    #include "tensorflow/compiler/mlir/lite/transforms/passes.h.inc"
    
    constexpr char kTFAPIImplements[] = "tf.api_implements";
    constexpr char kTFTextAPIPrefix[] = "tftext:";
    constexpr char kCustomSSDPostprocessing[] = "TFLite_Detection_PostProcess";
    constexpr char kTfNMSPadded[] = "non_max_suppression_padded_v2";
    constexpr char kCustomMaxUnpooling[] = "addons:MaxUnpooling2D";
    constexpr char kCustomDenseImageWarp[] = "addons:DenseImageWarp";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/common/uniform_quantized_types_test.cc

          dyn_cast_or_null<IntegerType>(qi8_type.getStorageType())));
    }
    
    using IsOpFullyQuantizedTest = QuantizationTestBase;
    
    TEST_F(IsOpFullyQuantizedTest, TrueIfOpFullyQuantized) {
      constexpr absl::string_view kFullyQuantizedAdd = R"mlir(
        func.func @fully_quantized_add(%arg0: tensor<2x!quant.uniform<i8:f32, 1.000000e+00:0>>) -> tensor<2x!quant.uniform<i8:f32, 1.000000e+00:0>> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/utils/tf_to_uniform_attribute_utils_test.cc

      EXPECT_TRUE(uq_requant_op);
    
      return uq_requant_op;
    }
    
    TEST_F(TfToUniformAttributeUtilsTest, UniformQuantizedAddOpAttributes) {
      TfToUniformAttributeUtilsTestPeer test_peer(&ctx_);
    
      constexpr absl::string_view kAddOpExpr =
          R"mlir(
          %0 = "tf.Const"() {value = #tf_type<tensor_proto : "0x746674656"> : tensor<1x3x2x2x!tf_type.qint32>} : () -> tensor<1x3x2x2x!tf_type.qint32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Sep 11 00:47:05 UTC 2023
    - 11.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/tpu_resource_partitioning.cc

    namespace mlir {
    namespace TFTPU {
    namespace {
    
    #define GEN_PASS_DEF_TPURESOURCEREADSWRITESPARTITIONINGPASS
    #include "tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.h.inc"
    
    constexpr char kUseSpmdAttr[] = "use_spmd_for_xla_partitioning";
    constexpr char kNumCoresPerReplicaAttr[] = "num_cores_per_replica";
    
    struct TPUResourceReadsWritesPartitioningPass
        : public impl::TPUResourceReadsWritesPartitioningPassBase<
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/api/v1/compile_tf_graph.cc

        {tsl::monitoring::Buckets::Exponential(1, 1.5, 45)});
    
    // There were no MLIR ops so the old bridge was called successfully.
    constexpr char kOldBridgeNoMlirSuccess[] = "kOldBridgeNoMlirSuccess";
    // There were no MLIR ops so the old bridge was called but it failed.
    constexpr char kOldBridgeNoMlirFailure[] = "kOldBridgeNoMlirFailure";
    
    namespace {
    
    // Time the execution of kernels (in CPU cycles). Meant to be used as RAII.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 22:19:26 UTC 2024
    - 14K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_tf_xla_call_module_to_stablehlo_pass.cc

    #include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.h"
    
    namespace mlir {
    namespace odml {
    
    static constexpr std::string_view kStablehloModuleDefaultEntryFuncName = "main";
    static constexpr std::string_view kStablehloFuncNamePrefix = "XlaCallModule";
    static constexpr char kShardingAttr[] = "mhlo.sharding";
    static constexpr char kShardingName[] = "Sharding";
    
    class RemoveCustomCallWithSharding
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 25 09:43:18 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/aot/codegen.cc

     public:
      // Number of input arguments for the compiled computation.
      static constexpr size_t kNumArgs = {{ARG_NUM}};
    
      static constexpr size_t kNumResults = {{RESULT_NUM}};
    
      // Number of variables for the compiled computation.
      static constexpr size_t kNumVariables = {{VARIABLE_NUM}};
    
      // Byte size of each argument buffer. There are kNumArgs entries.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 01:20:01 UTC 2024
    - 36.8K bytes
    - Viewed (0)
Back to top