Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 36 of 36 for Setxattr (0.26 sec)

  1. tensorflow/compiler/mlir/lite/transforms/analyze_variables.cc

                  getElementTypeOrSelf(operand.getType()))) {
            legalize_to_tfl = false;
            return WalkResult::interrupt();
          }
        }
        return WalkResult::advance();
      });
      module->setAttr(kLegalizeTflVariables,
                      BoolAttr::get(context, legalize_to_tfl));
    }
    
    }  // namespace
    
    std::unique_ptr<OperationPass<ModuleOp>> CreateAnalyzeVariablesPass() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/add_functions_for_exported_names.cc

    // Set the (array of) exported name(s) of a (public) function to just
    // contain the given string.
    void SetExportedName(func::FuncOp f, StringRef name) {
      OpBuilder b(f);
      f->removeAttr(kTfSavedModelExportedNamesAttr);
      f->setAttr(kTfSavedModelExportedNamesAttr, b.getStrArrayAttr({name}));
    }
    
    // Convert a savedmodel public function into a private function.
    // This means we need to remove any attributes that are only allowed
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 08:06:04 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/colocate_tpu_copy_with_dynamic_shape.cc

          state = solver.lookupState<Device>(result);
          if (state) break;
        }
        if (!state || !state->hasDevice()) {
          return WalkResult::advance();
        }
        op->setAttr(kDevice, state->getDevice());
        return WalkResult::advance();
      });
    }
    
    }  // namespace
    
    std::unique_ptr<OperationPass<ModuleOp>>
    CreateColocateTPUCopyWithDynamicShapePass() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 23 00:30:27 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/passes/post_quantize.cc

                                    PatternRewriter& rewriter) const override {
        auto input_op = op.getArg().getDefiningOp();
        if (auto q = llvm::dyn_cast_or_null<quantfork::QuantizeCastOp>(input_op)) {
          if (!q->getAttr(kVolatileOpAttrName)) return failure();
    
          if (remove_volatile_ops_type == kPreserveInputsAndOutputs) {
            // Don't remove leading and trailing QDQ for PTQ workflow, so the io
            // modifying lib can work correctly.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 07:39:40 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/group_by_dialect.cc

      auto func = builder.create<mlir::func::FuncOp>(
          ops[0]->getLoc(), dialect.str() + std::to_string(function_id),
          builder.getFunctionType(input_types, output_types));
      func->setAttr("dialect", builder.getStringAttr(dialect));
      auto block = func.addEntryBlock();
    
      llvm::DenseSet<Operation*> all_operations;
      for (Operation* outer : ops) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 17 07:31:01 UTC 2023
    - 8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/experimental/tac/transforms/target_annotation.cc

                       OpBuilder* builder) {
      // TODO(karimnosseir): Maybe set device capabilities to allow us to have
      // more flexbility when raise the subgraphs.
      auto default_target = builder->getStringAttr(annotation);
      op->setAttr(attribute, default_target);
    }
    
    void TargetAnnotationPass::SetTargetAnnotation(
        Operation* op, llvm::ArrayRef<std::string> device_specs,
        OpBuilder* builder) {
      if (op->hasAttr(kSkipTargetAnnotation)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 19 19:32:06 UTC 2023
    - 5.9K bytes
    - Viewed (0)
Back to top