Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for argLen (0.12 sec)

  1. src/cmd/compile/internal/ssa/zcse.go

    // remove duplicate expressions.
    func zcse(f *Func) {
    	vals := make(map[vkey]*Value)
    
    	for _, b := range f.Blocks {
    		for i := 0; i < len(b.Values); i++ {
    			v := b.Values[i]
    			if opcodeTable[v.Op].argLen == 0 {
    				key := vkey{v.Op, keyFor(v), v.Aux, v.Type}
    				if vals[key] == nil {
    					vals[key] = v
    					if b != f.Entry {
    						// Move v to the entry block so it will dominate every block
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 08 01:46:31 UTC 2020
    - 2.1K bytes
    - Viewed (0)
  2. src/cmd/internal/sys/args.go

    //
    // Windows has a limit of 32 KB. To be conservative and not worry about whether
    // that includes spaces or not, just use 30 KB. Darwin's limit is less clear.
    // The OS claims 256KB, but we've seen failures with arglen as small as 50KB.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Oct 02 13:15:42 UTC 2021
    - 550 bytes
    - Viewed (0)
  3. src/reflect/makefunc.go

    	// makeFuncImpl contains a stack map for use by the runtime
    	_, _, abid := funcLayout(ftyp, nil)
    
    	impl := &makeFuncImpl{
    		makeFuncCtxt: makeFuncCtxt{
    			fn:      code,
    			stack:   abid.stackPtrs,
    			argLen:  abid.stackCallArgsSize,
    			regPtrs: abid.inRegPtrs,
    		},
    		ftyp: ftyp,
    		fn:   fn,
    	}
    
    	return Value{t, unsafe.Pointer(impl), flag(Func)}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:20:05 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/ops/gen/model/arg_type.cc

    namespace generator {
    
    ArgType ArgType::CreateInput(const OpDef::ArgDef& arg_def) {
      return ArgType(arg_def, kInput);
    }
    
    ArgType ArgType::CreateInputRef(const OpDef::ArgDef& arg_def) {
      return ArgType(arg_def, kInputRef);
    }
    
    ArgType ArgType::CreateOutput(const OpDef::ArgDef& arg_def) {
      return ArgType(arg_def, kOutput);
    }
    
    ArgType::ArgType(const OpDef::ArgDef& arg_def, Kind kind)
        : kind_(kind), data_type_(arg_def.type()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 15 18:23:40 UTC 2021
    - 1.5K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/ops/gen/model/arg_spec.h

    // An input or output argument to an Op.
    //
    // Essentially, this represents an OpDef::ArgDef and its context within the Op.
    class ArgSpec {
     public:
      ArgSpec() = default;
      ArgSpec(const ArgSpec& other) = default;
      static ArgSpec CreateInput(const OpDef::ArgDef& arg_def, int position);
      static ArgSpec CreateOutput(const OpDef::ArgDef& arg_def, int position);
    
      const string& name() const { return name_; }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 15 18:23:40 UTC 2021
    - 1.8K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/ops/gen/model/arg_type.h

    //
    // This represents the type information with OpDef::ArgDef and any type-related
    // context.
    class ArgType {
     public:
      ArgType() = default;
      ArgType(const ArgType& other) = default;
      static ArgType CreateInput(const OpDef::ArgDef& arg_def);
      static ArgType CreateInputRef(const OpDef::ArgDef& arg_def);
      static ArgType CreateOutput(const OpDef::ArgDef& arg_def);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 15 18:23:40 UTC 2021
    - 1.9K bytes
    - Viewed (0)
  7. tensorflow/c/experimental/ops/gen/model/arg_spec.cc

    namespace tensorflow {
    namespace generator {
    
    ArgSpec::ArgSpec(const OpDef::ArgDef& arg_def, ArgType arg_type, int position)
        : name_(arg_def.name()),
          description_(arg_def.description()),
          arg_type_(arg_type),
          position_(position) {}
    
    ArgSpec ArgSpec::CreateInput(const OpDef::ArgDef& arg_def, int position) {
      if (arg_def.is_ref()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 15 18:23:40 UTC 2021
    - 1.4K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/ops/gen/model/op_spec.cc

        : name_(op_def.name()),
          summary_(api_def.summary()),
          description_(api_def.description()) {
      absl::flat_hash_set<string> inferred_attrs;
      // Parse the arguments
      for (const OpDef::ArgDef& arg_def : op_def.input_arg()) {
        ArgSpec arg = ArgSpec::CreateInput(arg_def, input_args_.size());
        input_args_.push_back(arg);
        if (!arg_def.type_attr().empty()) {
          inferred_attrs.insert(arg_def.type_attr());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 01 21:05:56 UTC 2021
    - 2.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/reduce.cc

    #include "mlir/Support/LogicalResult.h"  // from @llvm-project
    #include "xla/mlir_hlo/mhlo/IR/hlo_ops.h"
    
    namespace mlir {
    namespace odml {
    // Pattern matches the following reduction function for ArgMax/ArgMin coming
    // from PyTorch
    // %0 = compare{GT}(%lhs_value, %rhs_value)
    // %1 = select(%0, %lhs_value, %rhs_value)
    // %2 = compare{EQ}(%lhs_value, %rhs_value)
    // %3 = minimum(%lhs_index, %rhs_index)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 20:53:17 UTC 2024
    - 8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/reduce.h

    LogicalResult MatchReduceToArgMinMaxType2(mhlo::ReduceOp reduce_op,
                                              bool is_argmax);
    
    // Base class for converting mhlo::ReduceOp to TF/TFL ArgMax/ArgMin ops.
    template <typename Reduce, typename ArgReduce, typename BooleanReduce,
              bool is_argmax>
    class ConvertReduceOpToArgMinMax : public OpConversionPattern<mhlo::ReduceOp> {
     public:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.7K bytes
    - Viewed (0)
Back to top