Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 330 for constexpr (0.19 sec)

  1. tensorflow/compiler/mlir/tensorflow/utils/dump_mlir_util.h

    #include "mlir/IR/Operation.h"  // from @llvm-project
    #include "mlir/Pass/PassManager.h"  // from @llvm-project
    #include "tensorflow/core/platform/status.h"
    
    namespace tensorflow {
    
    inline constexpr absl::string_view kCrashReproducerStdErr = "-";
    inline constexpr absl::string_view kCrashReproducerCrashAnalysis =
        "crash_analysis";
    
    // Creates a file to use for dumping and returns success if a file could be
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 06 04:50:13 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/internal/passes/hoist_broadcast_read.cc

    using mlir::TF::ReadVariableOp;
    using mlir::tf_device::ReplicateOp;
    
    #define GEN_PASS_DEF_HOISTBROADCASTREADPASS
    #include "tensorflow/compiler/mlir/tf2xla/internal/passes/clustering_passes.h.inc"
    
    constexpr char kFuncDeviceAttr[] = "tf.device";
    constexpr char kCpuDeviceType[] = "CPU";
    
    struct HoistBroadcastRead
        : public impl::HoistBroadcastReadPassBase<HoistBroadcastRead> {
      void runOnOperation() override;
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/experimental/tac/examples/example_hardware.h

    #include "tensorflow/compiler/mlir/lite/experimental/tac/hardwares/simple_hardware.h"
    
    namespace mlir {
    namespace TFL {
    namespace tac {
    
    class ExampleHardware : public SimpleHardware {
     public:
      static constexpr char kId[] = "ExampleHardware";
    
      mlir::RewritePatternSet GetTransformations(
          MLIRContext* context) const override;
    
      mlir::TypeID GetTypeId() const override {
        return mlir::TypeID::get<ExampleHardware>();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 27 15:05:02 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/experimental/tac/hardwares/nnapi_hardware.h

    #include "tensorflow/compiler/mlir/lite/experimental/tac/hardwares/simple_hardware.h"
    
    namespace mlir {
    namespace TFL {
    namespace tac {
    
    class NNAPIHardware : public SimpleHardware {
     public:
      static constexpr char kId[] = "NNAPI";
    
      mlir::RewritePatternSet GetTransformations(
          MLIRContext* context) const override;
    
      mlir::TypeID GetTypeId() const override {
        return mlir::TypeID::get<NNAPIHardware>();
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 27 15:05:02 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/utils/xla_sharding_util.h

    #include "xla/xla_data.pb.h"
    #include "tensorflow/core/protobuf/tpu/compile_metadata.pb.h"
    
    namespace tensorflow {
    
    inline constexpr llvm::StringRef kInputShardingAttr =
        "input_sharding_configuration";
    inline constexpr llvm::StringRef kOutputShardingAttr =
        "output_sharding_configuration";
    
    // Parses the sharding string. This sharding string can be binary (serialized)
    // or human readable.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 28 22:18:34 UTC 2024
    - 6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/stablehlo/passes/replace_stablehlo_ops_in_main_function_with_xla_call_module_ops.cc

    namespace {
    
    constexpr StringRef kStablehloModuleAttrsAttrName = "_stablehlo_module_attrs";
    constexpr StringRef kUsesShapePolymorphismAttr = "jax.uses_shape_polymorphism";
    
    // Default version number for native serialization.
    constexpr int64_t kDefaultVersion = 9;
    // Platforms for XlaCallModuleOp.
    constexpr StringRef kPlatformCpu = "CPU";
    constexpr StringRef kPlatformTpu = "TPU";
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/experimental/tac/examples/example_hardware.cc

    #include "tensorflow/compiler/mlir/lite/experimental/tac/transforms/device_transform_patterns.h"
    #include "tensorflow/compiler/mlir/lite/ir/tfl_ops.h"
    
    namespace mlir {
    namespace TFL {
    namespace tac {
    
    constexpr char ExampleHardware::kId[];  // Define kId.
    
    mlir::RewritePatternSet ExampleHardware::GetTransformations(
        MLIRContext* context) const {
      mlir::RewritePatternSet patterns(context);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 06 03:08:33 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/tests/xla_sharding_util_test.cc

    #include "tensorflow/compiler/mlir/tensorflow/utils/xla_sharding_util.h"
    
    #include <string>
    
    #include <gtest/gtest.h>
    #include "mlir/Support/LogicalResult.h"  // from @llvm-project
    #include "xla/xla_data.pb.h"
    
    inline constexpr llvm::StringRef kXlaShardingAttrName = "_XlaSharding";
    
    namespace tensorflow {
    namespace {
    
    TEST(DecodeShardingAttributeTest, CheckInvalidString) {
      xla::OpSharding sharding;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/experimental/tac/common/subgraph.h

    // both implement "func_1".
    //
    // The attribute on the FuncOp means what it actually implements while the
    // attribute on the CallOp means what it actually looks for.
    constexpr char kInterfaceNameAttr[] = "tac.interface_name";
    
    inline std::optional<std::string> GetInterFaceName(Operation* op) {
      auto name_attr = op->getAttrOfType<StringAttr>(kInterfaceNameAttr);
      if (!name_attr) return std::nullopt;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 28 05:18:47 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/init_text_file_to_import.cc

    #include "tensorflow/compiler/mlir/tensorflow/transforms/passes.h"
    #include "tensorflow/core/lib/io/path.h"
    
    namespace mlir {
    namespace TF {
    namespace {
    
    static constexpr int kTextFileIndex_WholeLine = -2;
    static constexpr int kTextFileIndex_LineNumber = -1;
    
    #define GEN_PASS_DEF_INITTEXTFILETOIMPORTPASS
    #include "tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.h.inc"
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 03 12:35:38 UTC 2022
    - 6.1K bytes
    - Viewed (0)
Back to top