Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 330 for constexpr (0.25 sec)

  1. tensorflow/compiler/mlir/lite/experimental/tac/common/targets.h

    namespace mlir {
    namespace TFL {
    namespace tac {
    
    // Device attribute string on the TFL dialect.
    constexpr char kDevice[] = "tac.device";
    
    // Inference type.
    constexpr char kInferenceType[] = "tac.inference_type";
    
    // Inference type.
    constexpr char kSkipTargetAnnotation[] = "tac.skip_target_annotation";
    
    // TODO(renjieliu): Add more inference types.
    enum InferenceType {
      UNKNOWN = 0,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 06 03:08:33 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/stablehlo/odml_converter/transforms/outline_composites.cc

    #include "tensorflow/compiler/mlir/lite/stablehlo/odml_converter/passes.h.inc"
    
    constexpr float kOne = 1.0;
    const float kOneOverRoot2 = kOne / std::sqrt(2);
    constexpr float kHalf = kOne / 2.0;
    constexpr float kTolerance = kOne / 1000.0;
    
    // Gets the operation that uses the sole result of given operation
    // if there is only one.
    Operation* GetUserIfOnlyOne(Operation* op) {
      if (op->getNumResults() != 1) return nullptr;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 9.6K 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/tensorflow/transforms/tpu_colocate_splits.cc

    namespace mlir {
    namespace TFTPU {
    
    namespace {
    
    #define GEN_PASS_DEF_TPUCOLOCATESPLITSPASS
    #include "tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.h.inc"
    
    constexpr char kDeviceAttr[] = "device";
    // Attribute of colocation classes.
    constexpr char kClassAttr[] = "_class";
    
    bool HasDevice(Operation* op) {
      auto attr = op->getAttrOfType<StringAttr>(kDeviceAttr);
      if (!attr) return false;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 27 18:44:34 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tfrt/ir/mlrt/tf_mlrt_ops.h

     public:
      using Base::Base;
      static constexpr mlir::StringLiteral name = "tensorflow.tf_mlrt.tf_tensor";
    };
    
    // The MLIR type represents a tensorflow::Device*
    class TFDeviceType
        : public mlir::Type::TypeBase<TFDeviceType, mlir::Type, mlir::TypeStorage> {
     public:
      using Base::Base;
      static constexpr mlir::StringLiteral name = "tensorflow.tf_mlirt.tf_device";
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 05 07:17:01 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/ir/tf_executor.h

    class ControlType : public Type::TypeBase<ControlType, Type, TypeStorage> {
     public:
      using Base::Base;
      static constexpr ::mlir::StringLiteral name = "tf_executor.control";
    };
    
    class TokenType : public Type::TypeBase<TokenType, Type, TypeStorage> {
     public:
      using Base::Base;
      static constexpr ::mlir::StringLiteral name = "tf_executor.token";
    };
    
    }  // namespace tf_executor
    }  // namespace mlir
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 05 07:17:01 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/internal/passes/input_lowering_metrics_pass.cc

        "/tensorflow/core/tf2xla/api/v2/dynamism_function_counter",
        "Counts how many functions are dynamic", "has_dynamism");
    
    constexpr char kNotDynamicFunctionName[] = "kNotDynamicFunction";
    constexpr char kDynamicFunctionName[] = "kDynamicFunction";
    
    class InputMetricsLoweringPass
        : public impl::InputLoweringMetricsPassBase<InputMetricsLoweringPass> {
     public:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 08:55:35 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. tensorflow/compiler/mlir/tensorflow/transforms/tf_device_assignment.cc

    #include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.h"
    #include "tensorflow/compiler/mlir/tensorflow/transforms/passes.h"
    
    namespace mlir {
    namespace TF {
    namespace {
    
    constexpr char kDeviceAttr[] = "device";
    constexpr char kTFDeviceAttr[] = "tf.device";
    
    #define GEN_PASS_DEF_SIMPLETFDEVICEASSIGNMENTPASS
    #include "tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.h.inc"
    
    class SimpleTFDeviceAssignmentPass
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 23:50:19 UTC 2022
    - 4.3K bytes
    - Viewed (0)
Back to top