Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 23 for constexpr (0.24 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_island_coarsening.cc

    #include "tensorflow/core/platform/logging.h"
    
    #define DEBUG_TYPE "tf-executor-tpu-v1-island-coarsening"
    
    namespace mlir {
    namespace tf_executor {
    
    namespace {
    
    constexpr llvm::StringRef kTpuStatusAttr = "_tpu_compilation_status";
    constexpr llvm::StringRef kNoReplicationCluster = "__no_replication_cluster";
    
    #define GEN_PASS_DEF_TPUV1BRIDGEEXECUTORISLANDCOARSENINGPASS
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_custom_aggregation_ops.cc

    #include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.h"
    
    namespace mlir {
    namespace quant {
    namespace {
    
    using ::stablehlo::quantization::CalibrationOptions;
    using ::stablehlo::quantization::Method;
    
    constexpr StringRef kQuantTraitAttrName = "_tfl_quant_trait";
    
    // Whether the op is a call op to lifted composite function.
    bool IsCallToQuantizableLiftedFunction(Operation *op) {
      if (!op) return false;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/legalize_tf.cc

    namespace {
    #define GEN_PASS_DEF_LEGALIZETFPASS
    #include "tensorflow/compiler/mlir/lite/transforms/passes.h.inc"
    
    constexpr char kUnidirectionalSequenceLstm[] = "tf.UnidirectionalSequenceLstm";
    constexpr char kUnidirectionalSequenceRnn[] = "tf.UnidirectionalSequenceRnn";
    constexpr char kTfLiteInputIndices[] = "_tflite_input_indices";
    
    // Legalize operations in functions.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 20 20:06:54 UTC 2024
    - 45.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/analysis/resource_alias_analysis.cc

    //===----------------------------------------------------------------------===//
    // ResourceAliasAnalysisInfo
    //===----------------------------------------------------------------------===//
    
    namespace {
    
    constexpr char kResourceArgUniqueIdAttr[] = "tf._resource_arg_unique_id";
    
    bool IsResourceAllocatingOp(Operation* op) {
      auto mem_interface = dyn_cast<MemoryEffectOpInterface>(op);
      if (!mem_interface) return false;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 09:04:13 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/passes/merge_initializer_function_ops_to_main.cc

    //   `kTfSavedModelInitializerInitType` may have arguments with
    //   `tf_saved_model.bound_input`. This ordering avoids breaking the argument
    //   ordering constraint.
    constexpr std::array<StringRef, 2> kInitializerTypesByMergeOrder = {
        kTfSavedModelInitializerRestoreType, kTfSavedModelInitializerInitType};
    
    // This pass moves all ops from initializer functions to the main function. A
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun May 12 12:54:52 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/analysis/side_effect_analysis.h

    #include "tensorflow/compiler/mlir/tensorflow/analysis/resource_alias_analysis.h"
    
    namespace mlir {
    namespace TF {
    using ResourceId = int64_t;
    inline constexpr ResourceId kUnknownResourceId =
        ResourceAliasAnalysis::Info::kUnknownResourceId;
    static_assert(kUnknownResourceId < 0, "kUnknownResourceId must be < 0");
    
    // Maps group IDs to branch IDs.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 09:04:13 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util.cc

    #include "tensorflow/core/tpu/tpu_defs.h"
    #include "tensorflow/core/util/debug_data_dumper.h"
    #include "tsl/platform/errors.h"
    
    namespace tensorflow {
    namespace {
    constexpr absl::string_view kGroupSizeAttrName =
        "tf2xla.collective_info.group_size";
    constexpr absl::string_view kGroupKeyAttrName =
        "tf2xla.collective_info.group_key";
    
    // Extracts shape from XlaArgument as TensorShape. If shape is a xla::Shape,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 17:24:39 UTC 2024
    - 45.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/jit/xla_device.cc

      // between transfers. The particular value of '4' is chosen fairly
      // arbitrarily. It may be necessary to make this tunable via
      // XlaDevice::Options.
      static constexpr int kNumDeviceToDeviceStreams = 4;
      device_to_device_streams_.resize(kNumDeviceToDeviceStreams);
    }
    
    XlaDevice::~XlaDevice() {
      VLOG(1) << "Destroying XLA device " << jit_device_name_ << " " << this;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 20 21:05:42 UTC 2024
    - 24.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/tf_tfl_passes.cc

    std::unique_ptr<OperationPass<func::FuncOp>>
    CreateTFExecutorToControlDialectConversion();
    }  // namespace mlir
    
    namespace tensorflow {
    namespace {
    // Data layout supported by TFLite.
    constexpr mlir::StringRef kTFLiteDataLayout = "NHWC";
    }  // namespace
    
    void AddQuantizationPasses(const mlir::TFL::PassConfig& pass_config,
                               mlir::OpPassManager& pass_manager) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 18:45:51 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/utils/xla_sharding_util.cc

    #include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.h"
    #include "xla/client/sharding_builder.h"
    #include "xla/service/hlo_parser.h"
    #include "xla/xla_data.pb.h"
    
    namespace tensorflow {
    namespace {
    
    constexpr char kNumSplitAttr[] = "num_split";
    
    // Creates a tf::SplitOp that splits 'src_input' into 'num_splits' ways
    // in 'split_dimension' dimension and returns the split values.
    mlir::LogicalResult CreateSplitOp(const int num_split,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 22 21:28:13 UTC 2024
    - 34K bytes
    - Viewed (0)
Back to top