Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 88 for funcType (0.13 sec)

  1. src/go/types/api_test.go

    		}
    
    		// scope descriptions must match
    		for node, scope := range info.Scopes {
    			kind := "<unknown node kind>"
    			switch node.(type) {
    			case *ast.File:
    				kind = "file"
    			case *ast.FuncType:
    				kind = "func"
    			case *ast.BlockStmt:
    				kind = "block"
    			case *ast.IfStmt:
    				kind = "if"
    			case *ast.SwitchStmt:
    				kind = "switch"
    			case *ast.TypeSwitchStmt:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 94.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/transforms/modify_io_nodes.cc

        return;
      }
    
      OpBuilder builder(func);
      FunctionType func_type = func.getFunctionType();
      llvm::SmallVector<Type, 4> new_input_types(func_type.getInputs().begin(),
                                                 func_type.getInputs().end());
      llvm::SmallVector<Type, 4> new_output_types(func_type.getResults().begin(),
                                                  func_type.getResults().end());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/internal/utils/test_metadata_config.cc

      if (!main_fn) {
        return absl::InternalError("Could not find main function in MLIR Module.");
      }
    
      mlir::FunctionType func_type = main_fn.getFunctionType();
      for (auto input_type : func_type.getInputs()) {
        tensorflow::TensorShape tensor_shape;
        xla::Shape xla_shape = xla::TypeToShape(input_type);
        TF_RETURN_IF_ERROR(tensorflow::TensorShape::BuildTensorShape(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 13 23:59:33 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tfrt/saved_model/saved_model.cc

        // functions.
        auto func_names = mlir::tf_saved_model::GetExportedNames(func);
        if (func_names.empty()) return mlir::WalkResult::advance();
    
        auto func_type = func.getFunctionType();
    
        // Here we walk through each arguments and find out the input/output names,
        // and input devices, variables used by this function.
        llvm::SmallVector<llvm::StringRef, 4> input_names;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/optimize_functional_ops.cc

      auto return_types = llvm::to_vector<4>(terminator->getOperandTypes());
    
      FunctionType func_type = func.getFunctionType();
      if (llvm::ArrayRef(return_types) == func_type.getResults()) return;
    
      auto updated_type =
          FunctionType::get(func.getContext(), func_type.getInputs(), return_types);
      func.setType(updated_type);
    }
    
    // TODO(jpienaar): Remove when recursive side-effect modeling is added.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/cluster_outlining.cc

      llvm::SmallVector<Type, 4> operand_types;
      operand_types.reserve(live_ins.size());
      for (Value v : live_ins) operand_types.emplace_back(v.getType());
    
      auto func_type = builder->getFunctionType(operand_types, op.getResultTypes());
    
      std::string func_name;
      if (auto outlined_func_name = op->template getAttrOfType<StringAttr>(
              TF::kClusterOutlinedFunctionNameAttr)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_outline_tpu_island.cc

        // Function results are the yield operands
        SmallVector<Type, 16> func_result_types;
        for (Value operand : island_op.GetYield().getOperands())
          func_result_types.push_back(operand.getType());
        FunctionType func_type =
            FunctionType::get(ctx, func_operand_types, func_result_types);
    
        // Create the outlined function
        SmallString<32> name = kOutlinedFuncPrefix;
        name += llvm::Twine(prefix_id++).str();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/initialize_variables_in_session_init.cc

      mlir::OpBuilder builder(module.getBodyRegion());
      auto func_type =
          FunctionType::get(module.getContext(), /*inputs=*/{}, /*results=*/{});
      auto func = builder.create<func::FuncOp>(module->getLoc(),
                                               kSessionInitFuncName, func_type);
      func->setAttr(kTfSavedModelExportedNamesAttr,
                    builder.getStrArrayAttr({kSessionInitFuncName}));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 23 09:05:47 UTC 2024
    - 7K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util.cc

          module.lookupSymbol<mlir::func::FuncOp>("main");
      mlir::FunctionType func_type = main_func.getFunctionType();
    
      outputs->clear();
      outputs->reserve(func_type.getNumResults());
      resource_updates->clear();
      resource_updates->reserve(func_type.getNumResults());
    
      std::vector<xla::Shape> shapes;
      shapes.reserve(func_type.getNumResults());
    
      llvm::SmallDenseMap<unsigned, unsigned> output_to_input_alias;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 17:24:39 UTC 2024
    - 45.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/tensorflow/passes/lift_hashtable_ops_as_args.cc

      llvm::StringMap<int> shared_name_to_arg_idx;
      llvm::SmallVector<std::pair<Operation*, int>> lifted_op_and_arg_idx;
      Block& block = target_func.front();
      auto func_type = target_func.getFunctionType();
    
      for (Operation& op : block.without_terminator()) {
        StringRef shared_name = GetSharedName(&op);
        if (shared_name.empty() || !IsHashTableOp(&op)) continue;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 8.2K bytes
    - Viewed (0)
Back to top