Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for Fremovexattr (0.45 sec)

  1. tensorflow/compiler/mlir/tf2xla/internal/passes/mark_ops_for_outside_compilation.cc

        Operation* iter_op = op;
        bool remove_attr = false;
        while (auto* parent_op = iter_op->getParentOp()) {
          if (parent_op->getAttrOfType<StringAttr>(kXlaOutsideCompilationAttr)) {
            remove_attr = true;
            break;
          }
          iter_op = parent_op;
        }
        if (remove_attr) op->removeAttr(kXlaOutsideCompilationAttr);
      });
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/passes/lift_quantizable_spots_as_functions.cc

        }
    
        // The OK status means this op is quantizable. Return failure since the
        // pattern doesn't rewrite anything yet.
        if (check_status.ok()) return failure();
        call_op->removeAttr(kQuantTraitAttrName);
        removeAttrMapAttribute(call_op, function_name, check_status.message());
        return success();
      }
    
      // Get the quantization method to apply to this composite function. If set,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/internal/passes/tpu_cluster_formation.cc

      // nested ops.
      for (Operation* cluster_op : cluster_ops) {
        cluster_op->moveBefore(body, body->end());
        cluster_op->walk([&](Operation* inner_op) {
          inner_op->removeAttr(mlir::TF::kReplicationInfoAttr);
          inner_op->removeAttr(mlir::TF::kCompileDeviceTypeAttr);
    
          if (auto attr = inner_op->getAttrOfType<StringAttr>(kDeviceAttr)) {
            // Preserve device attribute if the op is placed on a replicated core
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 22:03:30 UTC 2024
    - 39.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/internal/passes/extract_head_tail_outside_compilation.cc

                               llvm::StringRef host_device) {
      Block* launch_block = new Block;
      for (Operation* head_outside_compiled_op : head_outside_compiled_ops) {
        head_outside_compiled_op->removeAttr(kXlaOutsideCompilationAttr);
        head_outside_compiled_op->moveBefore(launch_block, launch_block->end());
      }
    
      mlir::tf_device::LaunchOp launch = CreateLaunchForBlock(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/passes/add_dump_tensor_op.cc

      new_call_op->setAttr(kEntryFuncAttrName,
                           rewriter.getStringAttr(new_ref_func_name.getValue()));
      new_call_op->setAttrs(call_op->getAttrs());
      new_call_op->removeAttr(rewriter.getStringAttr(kQuantTraitAttrName));
    
      FlatSymbolRefAttr new_func_name_attr =
          FlatSymbolRefAttr::get(rewriter.getContext(), new_ref_func_name);
      new_call_op->setAttr(kEntryFuncAttrName, new_func_name_attr);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 22:55:22 UTC 2024
    - 13K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.cc

        Operation* op, PatternRewriter& rewriter) const {
      // removeAttr will return nullptr if the attribute did not exist. Thus we can
      // return success(result) to indicate if this op has changed.
      return success(/*isSuccess=*/
                     op->removeAttr(kDebugModeOpQuantAttrName) ||
                     op->removeAttr(kDebugModeOpFloatAttrName));
    }
    
    }  // namespace quant
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 02:10:16 UTC 2024
    - 43.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/quantization/tensorflow/fallback_to_flex_ops.cc

      func.walk([&](Operation *op) {
        if (op->getDialect() != tf_dialect) return;
        if (IsAllowListedOp(op)) return;
        if (op->hasAttr(kNoFallbackAttr)) {
          op->removeAttr(kNoFallbackAttr);
          return;
        }
        if (!ConvertToFlexOp(op)) signalPassFailure();
      });
    }
    }  // namespace internal
    
    std::unique_ptr<OperationPass<func::FuncOp>> CreateFallbackToFlexOpsPass(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_main_function.cc

      for (auto& attr : func->getAttrs()) {
        StringRef attr_name = attr.getName().getValue();
        if (attr_name.starts_with("tf_saved_model.")) {
          func->removeAttr(attr_name);
        }
      }
    
      auto iface = cast<FunctionOpInterface>(func.getOperation());
      for (int i = 0; i < func.getNumArguments(); ++i) {
        for (auto& attr : iface.getArgAttrs(i)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/stablehlo/passes/replace_stablehlo_ops_in_main_function_with_xla_call_module_ops.cc

      // func ops. We remove this attribute as this interferes with VHLO conversion.
      // Remove this temporary hack.
      for (auto func_op : module_op.getOps<func::FuncOp>()) {
        func_op->removeAttr(kFusedFunctionAttr);
      }
    }
    
    }  // namespace
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/utils/export_utils.cc

                           .getValue());
        // Remove the attribute from the instruction as it is already converted to
        // op_name.
        auto attr_id = mlir::StringAttr::get(inst->getContext(), "f");
        inst->removeAttr(attr_id);
      } else {
        // Some control flow ops in TensorFlow Graph have their respective "Ref" ops
        // as well. For example there is Enter and RefEnter op. RefEnter forwards
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 19.7K bytes
    - Viewed (0)
Back to top