Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 121 for variadicOk (0.27 sec)

  1. src/text/template/funcs.go

    		}
    	}
    	argv := make([]reflect.Value, len(args))
    	for i, arg := range args {
    		arg = indirectInterface(arg)
    		// Compute the expected type. Clumsy because of variadics.
    		argType := dddType
    		if !typ.IsVariadic() || i < numIn-1 {
    			argType = typ.In(i)
    		}
    
    		var err error
    		if argv[i], err = prepareArg(arg, argType); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 22:23:55 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  2. tensorflow/cc/experimental/libtf/object.h

    };
    
    template <class Fn, typename TReturn, class... ArgsOut>
    class UneraseCallHelper;
    
    // UneraseCallHelper::Call allows transforming all the incoming arguments
    // from a TaggedValue tuple to a variadic list of args.  The class template
    // starts as a list of argument types and ends empty. The static member
    // template starts empty and ends with the unerased types of the signature.
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 11 08:05:36 UTC 2023
    - 23.6K bytes
    - Viewed (0)
  3. src/debug/dwarf/type.go

    		if i > 0 {
    			s += ", "
    		}
    		s += t.String()
    	}
    	s += ")"
    	if t.ReturnType != nil {
    		s += " " + t.ReturnType.String()
    	}
    	return s
    }
    
    // A DotDotDotType represents the variadic ... function parameter.
    type DotDotDotType struct {
    	CommonType
    }
    
    func (t *DotDotDotType) String() string { return "..." }
    
    // A TypedefType represents a named type.
    type TypedefType struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 21.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/ir/tf_device.cc

          p << " as " << arg << ": " << arg.getType();
        });
        p << ')';
      }
    
      // Skip derived `operandSegmentSizes` attribute as custom print format of
      // operands holds enough information to calculate these variadic operand list
      // lengths.
      p.printOptionalAttrDict(
          getOperation()->getAttrs(),
          /*elidedAttrs=*/ArrayRef<StringRef>{kOperandSegmentSizesAttr});
      p << ' ';
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/tests/tf_executor_ops_invalid.mlir

    func.func @invalid_island(%arg0: tensor<*xf32>, %ctl: !tf_executor.control) {
      tf_executor.graph {
        "tf_executor.island"(%arg0) ({
    // expected-error@-1 {{'tf_executor.island' op operand #0 must be variadic of control}}
        }) : (tensor<*xf32>) -> (!tf_executor.control)
      }
      func.return
    }
    
    // -----
    
    // Check that an island must have at least a control result.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Oct 19 01:12:10 UTC 2023
    - 28.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

    // PackOp
    //===----------------------------------------------------------------------===//
    
    LogicalResult PackOp::verify() {
      PackOp op = *this;
      // TODO(hinsu): Convert variadic length attributes to derived attributes.
      Operation::operand_range values = op.getValues();
    
      if (failed(VerifyTypesCompatibility(values,
                                          /*mask_one_dim=*/false,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tfr/ir/tfr_ops.cc

        auto in_scales_op =
            scale_factor_op.getInScales().getDefiningOp<BuildListOp>();
        if (!in_scales_op || in_scales_op.getNumOperands() != 2) {
          // BuildListOp is variadic, but we require two values: input_scale
          // and filter_scale.
          return failure();
        }
    
        auto in_scale_op = in_scales_op.getOperand(0).getDefiningOp<CastOp>();
        if (!in_scale_op) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Nov 21 16:55:41 UTC 2023
    - 38.2K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/typecheck/func.go

    	lit.SetImplicit(true)
    
    	n := Expr(lit)
    	if n.Type() == nil {
    		base.FatalfAt(pos, "mkdotargslice: typecheck failed")
    	}
    	return n
    }
    
    // FixVariadicCall rewrites calls to variadic functions to use an
    // explicit ... argument if one is not already present.
    func FixVariadicCall(call *ir.CallExpr) {
    	fntype := call.Fun.Type()
    	if !fntype.IsVariadic() || call.IsDDD {
    		return
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 15:23:18 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  9. src/html/template/exec_test.go

    	{"bug14c", `{{$x := (1.0)}}{{$y := ("hello")}}{{$x.anything}}{{$y.true}}`, "", tVal, false},
    	// Didn't call validateType on function results. Issue 10800.
    	{"bug15", "{{valueString returnInt}}", "", tVal, false},
    	// Variadic function corner cases. Issue 10946.
    	{"bug16a", "{{true|printf}}", "", tVal, false},
    	{"bug16b", "{{1|printf}}", "", tVal, false},
    	{"bug16c", "{{1.1|printf}}", "", tVal, false},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 24 21:59:12 UTC 2024
    - 57.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/analysis/side_effect_analysis.cc

      // any side effect so far, for example, resource values being passed to
      // `tf.While` or `tf.If` ops which are not part of the op definition but
      // appear in a variadic input list.
      add_remaining_effects(filter_resources(op->getOperands()));
      add_remaining_effects(filter_resources(op->getResults()));
    
      if (!found_any_effect) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 09:04:13 UTC 2024
    - 41.2K bytes
    - Viewed (0)
Back to top