Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 330 for constexpr (0.14 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/python/unfreeze_constants.h

    #include "mlir/IR/BuiltinOps.h"  // from @llvm-project
    #include "mlir/IR/MLIRContext.h"  // from @llvm-project
    
    namespace tensorflow {
    namespace quantization {
    
    inline constexpr absl::string_view kTfQuantConstantUnfreezingStepName =
        "tf_quant_constant_unfreezing";
    inline constexpr absl::string_view kTfQuantInsertRestoreOpStepName =
        "tf_quant_insert_restore_op";
    
    absl::Status UnfreezeConstantsAndSaveVariables(absl::string_view checkpoint_dir,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Dec 06 22:28:42 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tfrt/ir/mlrt/mlrt_dialect.h

     public:
      using Base::Base;
      static constexpr mlir::StringLiteral name = "mlrt.compiler.future";
    };
    
    // The MLIR type represents a C++ mlrt::Promise.
    class PromiseType
        : public mlir::Type::TypeBase<PromiseType, mlir::Type, mlir::TypeStorage> {
     public:
      using Base::Base;
      static constexpr mlir::StringLiteral name = "mlrt.compiler.promise";
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 05 07:17:01 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/common/lift_as_function_call.h

    // Presence of this attribute will mark the function as quantization target.
    inline constexpr StringRef kFusedFunctionAttr = "tf_quant.composite_function";
    // The keyword to detect if this is a `NullAttribute`.
    inline constexpr StringRef kNullAttributeValue = "N/A";
    
    // Prefixes attached to lifted functions.
    constexpr StringRef kQuantizedFuncPrefix = "quantized_";
    constexpr StringRef kCompositeFuncPrefix = "composite_";
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/stablehlo/passes/testing/test_lift_quantizable_spots_as_functions_with_quantization_specs.cc

    using ::tsl::protobuf::io::ArrayInputStream;
    
    // Empty (default) `QuantizationSpecs` proto.
    constexpr absl::string_view kSpecsEmpty = R"pb(specs
                                                   [])pb";
    
    // Configure `QuantizationSpecs` to disable quantization for all dot_general
    // quantizable units.
    constexpr absl::string_view kSpecsDisableAllDotGeneral =
        R"pb(specs
             [ {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 28 23:21:42 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/experimental/tac/hardwares/nnapi_hardware.cc

    namespace mlir {
    namespace TFL {
    namespace tac {
    
    // The copy can be non-consectutive copy. This is just fake data.
    constexpr float kNNAPICopyUnitCost = 0.2;
    
    // Default values.
    constexpr float kNNAPIDefaultFixedValuedCost = 10000.0;
    
    constexpr char NNAPIHardware::kId[];  // Define kId.
    
    mlir::RewritePatternSet NNAPIHardware::GetTransformations(
        MLIRContext* context) const {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 06 03:08:33 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/cc/save_variables_test.cc

        EXPECT_TRUE(module_op_ref);
        return module_op_ref;
      }
    
      Env* env_{};
      mlir::MLIRContext ctx_{};
    };
    
    TEST_F(SaveVariablesToCheckpointTest, VariableSavedToCheckpoint) {
      constexpr absl::string_view kModuleCode = R"mlir(
        module attributes {tf_saved_model.semantics} {
          "tf_saved_model.session_initializer"() {initializers = [@init_func_restore_op]} : () -> ()
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 16.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/common/attrs_and_constraints.h

    #include "tensorflow/compiler/mlir/tensorflow/utils/xla_call_module_attrs.h"
    
    namespace mlir::quant {
    
    constexpr char kAttrMapAttribute[] = "attr_map";
    
    // Name of the string attribute attached to `XlaCallModuleOp`, which is the
    // textproto representation of `Method`.
    inline constexpr StringRef kQuantizationMethodAttr = "_quantization_method";
    
    // Permutation from the NHWC tensor format to NCHW. This is an inverse
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_to_mhlo_int_test.cc

      std::unique_ptr<xla::PjRtClient> pjrt_client_;
      xla::PjRtDevice* device_;
      absl::BitGen bitgen_;
    };
    
    TEST_F(ConvertTfQuantToMhloIntTest, UniformQuantizeAndDequantizeToValidGraph) {
      constexpr absl::string_view kProgram = R"mlir(
    func.func @main(%arg0: tensor<10xf32>) -> tensor<10xf32> {
      %scale = "tf.Const"() { value = dense<0.347> : tensor<f32> } : () -> tensor<f32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 03 01:03:21 UTC 2024
    - 35.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/tpu_partitioned_op_conversion.cc

              TPUPartitionedOpConversionPass> {
      void runOnOperation() override;
    };
    
    template <typename T>
    LogicalResult ReplacePartitionedOp(IntegerAttr num_cores_per_replica, T op) {
      constexpr bool is_input =
          std::is_same_v<std::decay_t<T>, TF::TPUPartitionedInputOp>;
      static_assert(
          is_input || std::is_same_v<std::decay_t<T>, TF::TPUPartitionedOutputOp>,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_metadata_utils.cc

    namespace mlir {
    namespace TFTPU {
    namespace {
    constexpr char kStepMarkerLocationAttr[] = "step_marker_location";
    constexpr char kUseXlaSpmdAttr[] = "use_spmd_for_xla_partitioning";
    
    constexpr char kBadStringArrayElementMsg[] =
        "bad '{0}' attribute at index {1}, not a string";
    constexpr char kBadArrayElementMsg[] =
        "bad '{0}' attribute at index {1} with value '{2}': failed to parse to {3}";
    constexpr char kBadArrayAttrLengthMsg[] =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.3K bytes
    - Viewed (0)
Back to top