Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 168 for getIPs (0.39 sec)

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

      // Move all remaining nested functions back into the parent module.
      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());
        }
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 08:06:04 UTC 2023
    - 4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/tfg-to-tfe.cc

    }  // namespace
    
    void LegalizeTFGToTFE::runOnOperation() {
      MLIRContext &context = getContext();
      ModuleOp module = getOperation();
    
      DenseSet<StringRef> func_symbols;
      for (auto &op : module.getBodyRegion().getOps()) {
        if (auto func = llvm::dyn_cast<tfg::GraphFuncOp>(op)) {
          func_symbols.insert(
              func->getAttrOfType<StringAttr>(SymbolTable::getSymbolAttrName())
                  .getValue());
        }
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_sequencing.cc

      // funtion. This is critical for preserving correctness in the presence of
      // resource variables and stateful functions.
      std::vector<Operation*> topological_order;
      for (Operation& op : parent_func.getOps())
        if (ops.contains(&op)) topological_order.push_back(&op);
    
      // Create the partitioned call
      builder.restoreInsertionPoint(insertion_point);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/remove_vars_in_session_initializer.cc

          init_func_op.emitError("expects exactly one block in the MLIR function");
          return signalPassFailure();
        }
    
        auto var_handle_ops =
            init_func_op.getBlocks().front().getOps<VarHandleOp>();
        llvm::SmallVector<VarHandleOp, 4> init_vars(var_handle_ops.begin(),
                                                    var_handle_ops.end());
        RemoveVariables(init_vars);
      }
    }
    
    }  // namespace
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/add_functions_for_exported_names.cc

          }
        }
      }
    }
    
    void AddFunctionsForExportedNamesPass::runOnOperation() {
      Block& module_body = getOperation().getRegion().front();
      for (auto f :
           llvm::make_early_inc_range(getOperation().getOps<func::FuncOp>())) {
        auto exported_names = GetExportedNames(f);
        if (exported_names.empty() || !f.isPublic()) continue;
    
        if (exported_names.size() == 1 && exported_names[0] == f.getName()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 08:06:04 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/cc/save_variables.cc

      if (!bundle_writer.status().ok()) {
        return bundle_writer.status();
      }
    
      std::vector<std::string> saved_variable_shared_names;
      for (auto assign_variable_op :
           session_init_func_type_restore_op.getOps<mlir::TF::AssignVariableOp>()) {
        if (const absl::StatusOr<std::string> variable_shared_name =
                AddTensorToBundleWriter(assign_variable_op, bundle_writer);
            !variable_shared_name.ok()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 03:36:55 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/guarantee_all_funcs_one_use.cc

          return failure();
    
        do {
          SymbolUserMap symbol_users(symbol_table_collection, module);
    
          made_changes = false;
          for (auto func :
               llvm::make_early_inc_range(module.getOps<func::FuncOp>())) {
            ArrayRef<Operation *> users = symbol_users.getUsers(func);
            if (users.size() <= 1) {
              continue;
            }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 23:50:19 UTC 2022
    - 4.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/passes/merge_save_function_ops_to_main.cc

        return cast<GraphOp>(graph_op_range.begin());
      }
    
      return {};
    }
    
    // Gets the "main" function from the module. Returns an empty op iff it doesn't
    // exist.
    func::FuncOp GetMainFunction(ModuleOp module_op) {
      const auto main_func_id =
          StringAttr::get(module_op.getContext(), kImportModelDefaultGraphFuncName);
      auto func_ops = module_op.getOps<func::FuncOp>();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  9. operator/pkg/translate/translate_test.go

    			serviceObj, err := object.ParseYAMLToK8sObject([]byte(serviceString))
    			assert.NoError(t, err)
    			obj, err := translator.fixMergedObjectWithCustomServicePortOverlay(serviceObj,
    				iop.Components.IngressGateways[0].GetK8S().GetService(), serviceObj)
    			assert.NoError(t, err)
    			val := obj.UnstructuredObject().Object["spec"].(map[string]interface{})["ports"].([]interface{})[0]
    			apVal, found, _ := tpath.GetFromStructPath(val, "appProtocol")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Feb 12 19:43:09 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/tensorflow/passes/unfreeze_constants.cc

      // functions and avoid converting ConstOps inside initializer functions.
      for (auto func_op : module_op.getOps<func::FuncOp>()) {
        // Do not unfreeze constants under these functions.
        if (func_op.getSymName().contains("while_body")) continue;
        if (func_op.getSymName().contains("while_cond")) continue;
        absl::c_copy_if(func_op.getOps<TF::ConstOp>(),
                        std::back_inserter(target_const_ops),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 16 15:04:53 UTC 2023
    - 14K bytes
    - Viewed (0)
Back to top