Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 315 for constexpr (0.36 sec)

  1. tensorflow/compiler/mlir/tf2xla/api/v1/compile_tf_graph_test.cc

    using ::tsl::monitoring::testing::Histogram;
    
    static constexpr char kCompilationTimeStreamzName[] =
        "/tensorflow/core/tf2xla/api/v1/phase2_compilation_time";
    
    static constexpr char kCompilationStatusStreamzName[] =
        "/tensorflow/core/tf2xla/api/v1/phase2_compilation_status";
    
    static constexpr char kPlatformName[] = "Host";
    constexpr char kEntryFuncName[] = "main";
    
    static constexpr char kMlirModuleStr[] = R"(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 08:08:57 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/ops/stablehlo_op_quant_spec_test.cc

    using ::testing::UnorderedElementsAre;
    
    using IsOpQuantizableStableHloTest = ::mlir::quant::QuantizationTestBase;
    
    // Quantizable ops: constants
    // Non-quantizable ops: normal StableHLO ops and terminators
    constexpr absl::string_view kModuleConstantAdd = R"mlir(
      module {
        func.func @constant_add() -> (tensor<3x2xf32>) {
          %cst1 = stablehlo.constant dense<2.4> : tensor<3x2xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 04 07:19:09 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tfr/ir/tfr_ops.h

    #include "mlir/Interfaces/SideEffectInterfaces.h"  // from @llvm-project
    
    namespace mlir {
    namespace TFR {
    
    constexpr char kAttrArgumentNameAttr[] = "tfr.name";
    constexpr char kAttrArgumentDefaultAttr[] = "tfr.default";
    constexpr char kAttrArgumentTypeAttr[] = "tfr.type";
    
    class TFRDialect : public Dialect {
     public:
      explicit TFRDialect(MLIRContext *context);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Sep 01 14:00:36 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/utils/stablehlo_custom_call.cc

    // to represent calling a TF host callback function.
    constexpr llvm::StringRef kTfTargetName = "tf.call_tf_function";
    
    // `tf.backend_config` is a DictionaryAttr, JAX2TF sets the value of its
    // string attribute `caller_name` to the TF host callback function's name.
    constexpr llvm::StringRef kTfBackendConfigAttrName = "tf.backend_config";
    constexpr llvm::StringRef kCalledFuncAttrName = "called_func";
    
    }  // namespace
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top