Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for funcType (0.21 sec)

  1. src/cmd/compile/internal/syntax/positions.go

    				continue
    			}
    			return n.Pos()
    		// types
    		// case *ArrayType:
    		// case *SliceType:
    		// case *DotsType:
    		// case *StructType:
    		// case *Field:
    		// case *InterfaceType:
    		// case *FuncType:
    		// case *MapType:
    		// case *ChanType:
    
    		// statements
    		// case *EmptyStmt:
    		// case *LabeledStmt:
    		// case *BlockStmt:
    		// case *ExprStmt:
    		case *SendStmt:
    			m = n.Chan
    		// case *DeclStmt:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 17:49:19 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  2. src/internal/reflectlite/reflect_mirror_test.go

    	"go/parser"
    	"go/token"
    	"io/fs"
    	"os"
    	"path/filepath"
    	"runtime"
    	"strings"
    	"sync"
    	"testing"
    )
    
    var typeNames = []string{
    	"uncommonType",
    	"arrayType",
    	"chanType",
    	"funcType",
    	"interfaceType",
    	"ptrType",
    	"sliceType",
    	"structType",
    }
    
    type visitor struct {
    	m map[string]map[string]bool
    }
    
    func newVisitor() visitor {
    	v := visitor{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 21:11:15 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  3. src/go/ast/example_test.go

    	//     12  .  .  .  .  .  Kind: func
    	//     13  .  .  .  .  .  Name: "main"
    	//     14  .  .  .  .  .  Decl: *(obj @ 7)
    	//     15  .  .  .  .  }
    	//     16  .  .  .  }
    	//     17  .  .  .  Type: *ast.FuncType {
    	//     18  .  .  .  .  Func: 3:1
    	//     19  .  .  .  .  Params: *ast.FieldList {
    	//     20  .  .  .  .  .  Opening: 3:10
    	//     21  .  .  .  .  .  Closing: 3:11
    	//     22  .  .  .  .  }
    	//     23  .  .  .  }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 21:44:50 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  4. src/go/ast/walk.go

    		Walk(v, n.Key)
    		Walk(v, n.Value)
    
    	// Types
    	case *ArrayType:
    		if n.Len != nil {
    			Walk(v, n.Len)
    		}
    		Walk(v, n.Elt)
    
    	case *StructType:
    		Walk(v, n.Fields)
    
    	case *FuncType:
    		if n.TypeParams != nil {
    			Walk(v, n.TypeParams)
    		}
    		if n.Params != nil {
    			Walk(v, n.Params)
    		}
    		if n.Results != nil {
    			Walk(v, n.Results)
    		}
    
    	case *InterfaceType:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:34:10 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top