Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 170 for StringRef (0.17 sec)

  1. tensorflow/compiler/mlir/tensorflow/ir/tf_side_effects.h

    namespace ResourceEffects {
    
    struct Variable : ::mlir::SideEffects::Resource::Base<Variable> {
      StringRef getName() final { return "Variable"; }
    };
    
    struct Stack : ::mlir::SideEffects::Resource::Base<Stack> {
      StringRef getName() final { return "Stack"; }
    };
    
    struct TensorArray : ::mlir::SideEffects::Resource::Base<TensorArray> {
      StringRef getName() final { return "TensorArray"; }
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 26 18:45:40 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/op_or_arg_name_mapper.cc

    static inline absl::string_view StringRefToView(llvm::StringRef ref) {
      return absl::string_view(ref.data(), ref.size());
    }
    
    static inline llvm::StringRef StringViewToRef(absl::string_view view) {
      return llvm::StringRef(view.data(), view.size());
    }
    
    namespace tensorflow {
    
    OpOrArgNameMapper::~OpOrArgNameMapper() = default;
    
    llvm::StringRef OpOrArgNameMapper::GetUniqueName(llvm::StringRef prefix,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/ir/tf_saved_model.h

    // the SessionInitializerOp.
    inline constexpr StringRef kTfSavedModelInitializerTypeAttr =
        "tf_saved_model.initializer_type";
    
    // Indicates that the initializer corresponds to the restore op.
    inline constexpr StringRef kTfSavedModelInitializerRestoreType = "restore_op";
    
    // Indicates that the initializer corresponds to the init op.
    inline constexpr StringRef kTfSavedModelInitializerInitType = "init_op";
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 18 03:21:34 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/cc/convert_asset_args.cc

    // SavedModel loader attaches the prefix for you during loading.
    StringRef MaybeStripAssetDirectoryPrefix(const StringRef filename) {
      if (filename.find("assets/") == 0) {
        return filename.drop_front(7);
      } else {
        return filename;
      }
    }
    
    AssetFileDef CreateAssetFileDef(const StringRef filename,
                                    const StringRef tensor_name) {
      AssetFileDef asset_file_def{};
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/passes/lift_hashtable_ops_as_args.cc

    namespace mlir {
    namespace quant {
    namespace {
    
    constexpr StringRef kSharedNameAttr = "shared_name";
    
    class LiftHashTableOpsAsArgsPass
        : public PassWrapper<LiftHashTableOpsAsArgsPass, OperationPass<ModuleOp>> {
     public:
      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(LiftHashTableOpsAsArgsPass)
      explicit LiftHashTableOpsAsArgsPass() = default;
    
      StringRef getArgument() const final {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/api/v2/cluster_tf.cc

    // bridge pipeline or non TPU bridge pipeline.
    tensorflow::Status RunTFXLABridge(
        ModuleOp module,
        llvm::function_ref<void(OpPassManager &pm)> pipeline_builder,
        llvm::StringRef module_name = llvm::StringRef(),
        llvm::StringRef dump_prefix = "tf_xla_bridge_v2") {
      // Explicitly check that the TensorFlow dialect can constant fold ops.
      // Constant folding is essential for the bridge. Without this check, the
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 28 22:25:18 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/readonly_references_to_resources.cc

    #include "tensorflow/compiler/mlir/tensorflow/transforms/passes.h"
    
    namespace mlir {
    namespace TF {
    namespace {
    
    // Location attribute.
    constexpr StringRef kClassAttr = "_class";
    constexpr StringRef kSharedNameAttr = "shared_name";
    constexpr StringRef kLocationPrefix = "loc:@";
    
    #define GEN_PASS_DEF_CONVERTREADONLYREFERENCEVARIABLESTORESOURCEVARIABLESPASS
    #include "tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.h.inc"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/internal/passes/verify_clustering_pass_test.mlir

    // CHECK-LABEL: func @testTFDialect
    func.func @testTFDialect(%arg0: tensor<4x?x!tf_type.stringref>) -> tensor<4x2x!tf_type.string> {
      %0 = "tf.Identity"(%arg0) : (tensor<4x?x!tf_type.stringref>) -> tensor<4x2x!tf_type.string>
      func.return %0 : tensor<4x2x!tf_type.string>
    }
    
    
    // -----
    
    func.func @testTFDialect(%arg0: tensor<4x?x!tf_type.stringref>) -> tensor<4x2x!tf_type.string> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 30 22:07:53 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/passes/add_quantization_unit_loc.cc

        // Op type is a NameLoc with the ":" suffix.
        StringRef op_type_with_suffix =
            mlir::cast<NameLoc>(locations.front()).getName().strref();
        StringRef op_type =
            op_type_with_suffix.substr(0, op_type_with_suffix.size() - 1);
        new_unit.set_op_type(op_type.str());
    
        if (isa<NameLoc>(locations.back())) {
          StringRef name_loc_id =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/utils/attribute_utils.h

    // associated compilation cluster and replication metadata op.
    inline constexpr llvm::StringRef kTpuReplicateAttr = "_tpu_replicate";
    // Device types.
    inline constexpr llvm::StringRef kTpuDevice = "TPU";
    // _xla_outside_compilation
    inline constexpr llvm::StringRef kXlaOutsideCompilationAttr =
        "_xla_outside_compilation";
    // device attr
    inline constexpr llvm::StringRef kDeviceAttr = "device";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 22 19:47:48 UTC 2024
    - 8.7K bytes
    - Viewed (0)
Back to top