Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for constexpr (0.14 sec)

  1. tensorflow/compiler/mlir/tf2xla/api/v2/legalize_tf_test.cc

    using tpu::FunctionToHloArgs;
    using tpu::MlirToHloArgs;
    using tpu::ShardingAndIndex;
    using tpu::TPUCompileMetadataProto;
    
    static constexpr char kCompilationTimeStreamzName[] =
        "/tensorflow/core/tf2xla/api/v2/phase2_compilation_time";
    static constexpr char kFullBridge[] = "full_bridge";
    static constexpr char kCompilationStatusStreamzName[] =
        "/tensorflow/core/tf2xla/api/v2/phase2_compilation_status";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 13 23:59:33 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/api/v1/compile_tf_graph.cc

        {tsl::monitoring::Buckets::Exponential(1, 1.5, 45)});
    
    // There were no MLIR ops so the old bridge was called successfully.
    constexpr char kOldBridgeNoMlirSuccess[] = "kOldBridgeNoMlirSuccess";
    // There were no MLIR ops so the old bridge was called but it failed.
    constexpr char kOldBridgeNoMlirFailure[] = "kOldBridgeNoMlirFailure";
    
    namespace {
    
    // Time the execution of kernels (in CPU cycles). Meant to be used as RAII.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 22:19:26 UTC 2024
    - 14K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/translate/tf_mlir_translate_registration.cc

    #include "tsl/platform/protobuf.h"
    
    namespace mlir {
    using tsl::Status;
    using tsl::StatusOr;
    
    static constexpr char kMlirToGraphCompilationCheckName[] =
        "mlir-to-graph-compilation-check";
    // Use CPU arbitrarily in order to check that a graph compiles at all
    static constexpr char kArbitraryDeviceName[] = "XLA_CPU_JIT";
    
    namespace {
    inline absl::string_view StringRefToView(llvm::StringRef ref) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 22:19:26 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/utils/tpu_rewrite_device_util.cc

    // Device coordinates are defined as (x, y, z, core), thus resulting in a rank 4
    // topology.
    constexpr int kTPUTopologyRank = 4;
    
    constexpr char kDeviceTPUSystem[] = "TPU_SYSTEM";
    constexpr char kDeviceTPU[] = "TPU";
    constexpr char kTPUReplicatedCore[] = "TPU_REPLICATED_CORE";
    constexpr char kTPUReplicatedHost[] = "TPU_REPLICATED_HOST";
    constexpr char kBadIntArrayElementMsg[] =
        "bad '{0}' attribute at index {1}, not an int";
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jun 10 20:10:40 UTC 2024
    - 32.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/utils/string_utils.h

    #define TENSORFLOW_COMPILER_MLIR_LITE_UTILS_STRING_UTILS_H_
    
    #include <stdint.h>
    
    #include <cstddef>
    #include <limits>
    #include <vector>
    
    #include "absl/status/status.h"
    
    namespace mlir::TFL {
    
    constexpr uint64_t kDefaultMaxLength = std::numeric_limits<int>::max();
    
    class MiniDynamicBuffer {
     public:
      explicit MiniDynamicBuffer(size_t max_length = kDefaultMaxLength)
          : offset_({0}), max_length_(max_length) {}
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:41:49 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/internal/utils/test_metadata_config.cc

    #include "tensorflow/core/protobuf/tpu/compile_metadata.pb.h"
    #include "tsl/platform/errors.h"
    
    namespace tensorflow {
    namespace tf2xla {
    namespace internal {
    namespace {
    
    constexpr char kEntryFuncName[] = "main";
    
    absl::Status SetupArguments(mlir::ModuleOp module,
                                std::vector<TensorShape>& arg_shapes,
                                tpu::TPUCompileMetadataProto& metadata_proto) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 13 23:59:33 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc

        "optimization pass",
        /* metric field */ "status");
    
    // The status metric field is used to record success/failure of mlir
    // function/graph optimization passes.
    constexpr char kSuccess[] = "kSuccess";
    constexpr char kFailure[] = "kFailure";
    
    static inline absl::string_view StringRefToView(llvm::StringRef ref) {
      return {ref.data(), ref.size()};
    }
    
    // Dumps the MLIR module to disk.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 22:19:26 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc

        int64_t num_results = op.getNumResults();
        if constexpr (std::is_same<DstOpT, mhlo::WhileOp>::value) {
          element_types.reserve(num_results);
          for (Value value : adaptor.getOperands()) {
            element_types.push_back(getElementTypeOrSelf(value.getType()));
          }
        }
    
        if constexpr (std::is_same<DstOpT, mhlo::CaseOp>::value) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 291.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/quantization/lite/quantize_weights_test.cc

    tensorflow::string* g_test_model_dir = nullptr;
    }  // namespace
    
    namespace tflite {
    namespace optimize {
    namespace {
    
    using mlir::lite::BufferType;
    using mlir::lite::CustomOpMap;
    using mlir::lite::QuantizeWeights;
    constexpr bool kUseUpdatedHybridSchemeDefault = true;
    
    std::unique_ptr<ModelT> CreateMutableModelFromFile(const Model* input_model) {
      auto copied_model = std::make_unique<ModelT>();
      input_model->UnPackTo(copied_model.get(), nullptr);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 23:15:24 UTC 2024
    - 32.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/flatbuffer_export.cc

    // Use initial buffer size in flatbuffer builder to be same as the initial size
    // used by the TOCO export. (It does not explain rationale for this choice.)
    constexpr size_t kInitialBufferSize = 10240;
    
    // Flatbuffer fields to be padded to 16 bytes aligned.
    constexpr size_t kFbAlignment = 16;
    
    // Set `isSigned` to false if the `type` is an 8-bit unsigned integer type.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:41:49 UTC 2024
    - 164.5K bytes
    - Viewed (0)
Back to top