Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 126 for func_20 (0.25 sec)

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

        // Builder builder(func_op.getContext());
        func_op->setAttr(
            kTfInputShapesAttr,
            ArrayAttr::get(func_op.getContext(), updated_input_shapes_attr));
      }
    }
    
    // Validates func ops. Returns `failure` if the function is invalid.
    LogicalResult ValidateFuncOp(func::FuncOp func_op) {
      auto input_shapes_attr =
          func_op->getAttrOfType<ArrayAttr>(kTfInputShapesAttr);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 09:56:53 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/tpu_update_embedding_enqueue_op_inputs.cc

      op->removeAttr(kTPUEmbeddingAttr);
      return success();
    }
    
    LogicalResult FindTPUEmbeddingOps(
        func::FuncOp func_op, llvm::StringMap<Operation*>* enqueue_op_map,
        llvm::StringMap<Operation*>* recv_activation_op_map,
        llvm::StringMap<Operation*>* send_gradient_op_map) {
      auto walk_result = func_op.walk([&](Operation* op) {
        if (llvm::isa<TF::RecvTPUEmbeddingActivationsOp>(op))
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 23:50:19 UTC 2022
    - 7.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/passes/mark_functions_noinline.cc

      const StringSet<> noinline_functions = GetNoinlineFunctionsSet();
    
      func::FuncOp func_op = getOperation();
      Builder builder(&getContext());
    
      // Adds the `tf._noinline = true` attribute to the function if the name
      // matches.
      if (noinline_functions.contains(func_op.getSymName())) {
        func_op->setAttr(kTfNoinlineAttr, builder.getBoolAttr(true));
        LLVM_DEBUG(llvm::dbgs()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jan 18 02:52:57 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/stablehlo/passes/prepare_quantize.cc

      auto func_op_quant_scale_spec = GetStableHloQuantConstraints;
    
      for (auto func_op : module_op.getOps<func::FuncOp>()) {
        // The function might contain more stats ops than required, and it will
        // introduce requantize if the calibration stats have conflicts. This tries
        // to remove all the redundant stats ops.
        RemoveRedundantStatsOps(func_op, func_op_quant_spec,
                                func_op_quant_scale_spec);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 03 05:11:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_inline_tpu_island.cc

      Block &nested_block = nested_module->getRegion(0).front();
      for (func::FuncOp func_op :
           llvm::make_early_inc_range(nested_block.getOps<func::FuncOp>())) {
        if (!symbol_table.lookupSymbolIn(getOperation(), func_op.getName())) {
          nested_block.getOperations().remove(func_op.getOperation());
          symbol_table.insert(func_op.getOperation());
        }
      }
      nested_module->erase();
    }
    
    }  // namespace
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 08:06:04 UTC 2023
    - 4K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tfrt/analysis/test_cost_analysis_pass.cc

        return "Add remarks based on cost analysis for testing purpose.";
      }
      void runOnOperation() override {
        const auto& cost_analysis = getAnalysis<CostAnalysis>();
    
        auto func_op = getOperation();
        for (auto& op : func_op.front()) {
          op.emitRemark() << "Cost: " << cost_analysis.GetCost(&op);
        }
      }
    };
    
    static mlir::PassRegistration<TestCostAnalysis> pass;
    
    }  // namespace tfrt_compiler
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 01 23:46:29 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/canonicalize_compile_and_replicate_attributes.cc

      void runOnOperation() override;
    };
    
    void CanonicalizeCompileAndReplicateAttributesPass::runOnOperation() {
      func::FuncOp func_op = getOperation();
      ModuleOp module_op = func_op->getParentOfType<ModuleOp>();
      mlir::OpBuilder builder(module_op.getContext());
    
      auto walk_result = func_op->walk([&](mlir::Operation* op) {
        // Convert `_tpu_replicate`.
        if (op->hasAttr(TF::kTpuReplicateAttr)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 23:50:19 UTC 2022
    - 4.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/ops/tf_quantize_op.cc

      }
    
      Value func_input_arg;
      // Creates a function.
      func::FuncOp func_op = PrepareFunctionRegister(
          rewriter, input_val, result_type, unique_func_name, func_input_arg);
    
      // Fills the body.
      Operation* last_op_in_func =
          quantization_operations_func(rewriter, func_op.getOperation(),
                                       func_input_arg, result_type, quant_type);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/experimental/tac/common/subgraph.h

    // Take the following example:
    //
    // call @func_1_CPU {tac.interface_name = "func_1"}
    //
    // "func_1" is the interface name where "func_1_cpu" is the real implementation
    // we can have multiple FuncOps like "func_1_cpu" and "func_1_gpu" and they
    // both implement "func_1".
    //
    // The attribute on the FuncOp means what it actually implements while the
    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/quantization/tensorflow/passes/insert_restore_op.cc

          kTfSavedModelIndexPathAttr, builder.getArrayAttr({file_prefix_attr}))});
    
      const int insert_idx = func_op.getNumArguments();
    
      func_op.insertArgument(insert_idx, /*argType=*/filename_op_type, arg_attrs,
                             NameLoc::get(file_prefix_attr));
    
      return func_op.getArgument(insert_idx);
    }
    
    // Creates a 1D string array constant for "tensor_names" input of `RestoreV2`
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Mar 12 06:02:20 UTC 2023
    - 9K bytes
    - Viewed (0)
Back to top