Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 101 for StringRef (0.16 sec)

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

    // devices, and empty StringRef will be returned. Control dependencies,
    // NextIteration.Source -> NextIteration.Sink token dependencies, and
    // LoopCond -> Switch data dependencies are ignored.
    llvm::StringRef FindDeviceFromOperands(
        Operation& op,
        const llvm::DenseMap<Value, llvm::StringRef>& value_to_device) {
      llvm::StringRef new_device;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util.h

        mlir::ModuleOp module_op, llvm::StringRef device_type,
        xla::XlaComputation* xla_computation, bool use_tuple_args,
        bool enable_op_fallback, bool return_tuple,
        const XlaShapeLayoutHelpers::ShapeDeterminationFns shape_determination_fns =
            {},
        llvm::MutableArrayRef<std::unique_ptr<mlir::Pass>>
            custom_legalization_passes = {},
        llvm::StringRef module_name = llvm::StringRef());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 17:24:39 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_island_coarsening.cc

    bool is_valid_special_tpu_op(
        std::vector<IslandOp>& ops, llvm::StringRef cluster_name,
        llvm::SmallDenseMap<llvm::StringRef, llvm::SmallDenseSet<Operation*>>&
            cluster_to_tpu_op_map) {
      for (IslandOp op : ops) {
        Operation* wrapped_op = &op.GetBody().front();
        std::optional<llvm::StringRef> wrapped_op_cluster_name =
            GetTpuClusterName(wrapped_op);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/common/lift_as_function_call.cc

    // Default platform for XlaCallModuleOp.
    constexpr StringRef kPlatformCpu = "CPU";
    // Name of `tf.XlaCallModule`'s dictionary attribute for keeping the
    // deserialized stablehlo module's attributes.
    constexpr StringRef kStablehloModuleAttrsAttrName = "_stablehlo_module_attrs";
    // Attribute required for running shape refinement pass enabled in XlaCallModule
    // version 8 and above.
    constexpr StringRef kUsesShapePolymorphismAttr = "jax.uses_shape_polymorphism";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util.cc

                                  llvm::StringRef device_type,
                                  bool enable_op_fallback,
                                  llvm::MutableArrayRef<std::unique_ptr<mlir::Pass>>
                                      custom_legalization_passes,
                                  bool lower_to_xla_hlo,
                                  llvm::StringRef module_name = llvm::StringRef()) {
      mlir::PassManager tf2xla(module_op.getContext());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 17:24:39 UTC 2024
    - 45.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_main_function.cc

     public:
      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(InsertMainFunctionPass)
    
      explicit InsertMainFunctionPass() = default;
    
      StringRef getArgument() const override {
        return "quant-insert-main-function";
      }
    
      StringRef getDescription() const override {
        return "Inserts the main function to the module.";
      }
    
      void runOnOperation() override;
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_freeze_variables.cc

      }
    }
    
    // Returns ID for identifying a resource.
    std::tuple<llvm::StringRef, llvm::StringRef, llvm::StringRef> GetResourceKey(
        Operation* op) {
      llvm::StringRef device;
      if (auto attr = op->getAttrOfType<mlir::StringAttr>("device")) {
        device = attr.getValue();
      }
    
      llvm::StringRef container;
      if (auto attr = op->getAttrOfType<mlir::StringAttr>("container")) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 09:56:53 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_custom_aggregation_ops.cc

             call_op->getAttrOfType<StringAttr>(kQuantTraitAttrName).getValue() ==
                 llvm::StringRef(
                     QuantTraitValues[QuantizationTrait::FullyQuantizable]);
    }
    
    // Returns the composite function name.
    std::optional<StringRef> GetCompsiteFunctionName(Operation *op) {
      if (!IsCallToQuantizableLiftedFunction(op)) return std::nullopt;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_collective.cc

      ModuleOp module = op->getParentOfType<ModuleOp>();
      // The StringRef cast is necessary before cxx14.
      if (failed(SetOnceModuleAttribute(
              StringRef(kGroupSizeAttrName.data(), kGroupSizeAttrName.size()),
              group_size, op, module))) {
        return failure();
      }
      if (failed(SetOnceModuleAttribute(
              StringRef(kGroupKeyAttrName.data(), kGroupKeyAttrName.size()),
              group_key, op, module))) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 16K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/utils/tpu_rewrite_device_util.h

    // A TPU device for execution alongside its associated host CPU device.
    struct TPUDeviceAndHost {
      TPUDeviceAndHost() = default;
      TPUDeviceAndHost(llvm::StringRef device, llvm::StringRef host)
          : device(device), host(host) {}
    
      std::string device;
      std::string host;
    };
    
    // TPU devices to be used for execution (e.g. devices for TPUExecute ops) and
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 11.3K bytes
    - Viewed (0)
Back to top