Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 162 for constexpr (0.23 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. tensorflow/compiler/mlir/tensorflow/transforms/replica_id_to_device_ordinal.cc

    #include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.h"
    #include "tensorflow/compiler/mlir/tensorflow/utils/device_util.h"
    
    namespace mlir {
    namespace TFDevice {
    namespace {
    constexpr char kReplicaIdAttr[] = "_xla_replica_id";
    constexpr char kDeviceOrdinalAttr[] = "device_ordinal";
    
    #define GEN_PASS_DEF_REPLICAIDTODEVICEORDINALPASS
    #include "tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.h.inc"
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 23:50:19 UTC 2022
    - 4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/experimental/tac/transforms/cost_model.cc

    #include "tensorflow/compiler/mlir/lite/ir/tfl_ops.h"
    
    namespace mlir {
    namespace TFL {
    namespace tac {
    namespace {
    
    // These are just fake costs.
    constexpr float kDequantCost = 2.0;
    constexpr float kQuantCost = 2.0;
    constexpr float kRequantCost = 2.0;
    
    // TODO(renjieliu): Ideally this should consider different kinds of SOCs as
    // well.
    
    // Get total bytes transferred.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tfrt/tests/analysis/update_op_cost_in_tfrt_mlir_test.cc

    #include "tensorflow/core/platform/test.h"
    #include "tensorflow/core/tfrt/fallback/cost_recorder.h"
    #include "tfrt/init_tfrt_dialects.h"  // from @tf_runtime
    
    namespace tensorflow {
    namespace {
    
    constexpr char kCostAttrName[] = "_tfrt_cost";
    constexpr char kOpKeyAttrName[] = "op_key";
    
    absl::flat_hash_map<int64_t, uint64_t> GetOpCostMap(mlir::ModuleOp op) {
      absl::flat_hash_map<int64_t, uint64_t> op_cost_map;
      op.walk([&](mlir::Operation* op) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jul 21 22:52:12 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/translate/tf_mlir_translate_registration_test.cc

    #include "mlir/Tools/mlir-translate/Translation.h"  // from @llvm-project
    #include "tensorflow/core/platform/test.h"
    
    namespace mlir {
    namespace {
    
    class MlirTranslationTest : public ::testing::Test {
     private:
      static constexpr char kMlirToGraphFlag[] = "-mlir-to-graph";
    
     public:
      MlirTranslationTest() : translation_(RegisterTranslation()) {
        // Create fake command line args so that the parser gets chosen.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 20 23:11:32 UTC 2023
    - 3.2K bytes
    - Viewed (0)
Back to top