Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for const_args (0.17 sec)

  1. tensorflow/compiler/jit/compilability_check_util.cc

      std::vector<bool> const_args(arg_types.size());
      // If we can't analyze the const args. Bail out.
      TF_RETURN_IF_ERROR(
          BackwardsConstAnalysis(*((*fbody)->graph), &const_args,
                                 /*compile_time_const_nodes=*/nullptr, flr));
    
      for (size_t i = 0; i < const_args.size(); ++i) {
        if (const_args[i]) {
          constant_arg_indices->push_back(i);
        }
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/encapsulate_subgraphs_pass.cc

            OptimizeGraph(flr, subgraph, graph_optimizer_options);
    
            const int num_args = input_permutation->size();
            std::vector<bool> const_args(num_args);
            TF_RETURN_IF_ERROR(
                BackwardsConstAnalysis(**subgraph, &const_args,
                                       /*compile_time_const_nodes=*/nullptr, flr));
    
            DataTypeVector arg_types(num_args);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 51K bytes
    - Viewed (0)
  3. src/go/types/conversions.go

    package types
    
    import (
    	"go/constant"
    	. "internal/types/errors"
    	"unicode"
    )
    
    // conversion type-checks the conversion T(x).
    // The result is in x.
    func (check *Checker) conversion(x *operand, T Type) {
    	constArg := x.mode == constant_
    
    	constConvertibleTo := func(T Type, val *constant.Value) bool {
    		switch t, _ := under(T).(*Basic); {
    		case t == nil:
    			// nothing to do
    		case representableConst(x.val, check, t, val):
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:51:00 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/conversions.go

    package types2
    
    import (
    	"go/constant"
    	. "internal/types/errors"
    	"unicode"
    )
    
    // conversion type-checks the conversion T(x).
    // The result is in x.
    func (check *Checker) conversion(x *operand, T Type) {
    	constArg := x.mode == constant_
    
    	constConvertibleTo := func(T Type, val *constant.Value) bool {
    		switch t, _ := under(T).(*Basic); {
    		case t == nil:
    			// nothing to do
    		case representableConst(x.val, check, t, val):
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:51:00 UTC 2024
    - 9K bytes
    - Viewed (0)
  5. tensorflow/cc/experimental/libtf/tests/generate_testdata.py

    
    class DataStructureModel(module.Module):
      """Model used for testing data structures in the C++ API."""
    
      def __init__(self):
        self.arr1 = [1.]
        self.const_arr = [constant_op.constant(1.)]
        self.var_arr = [variables.Variable(1.), variables.Variable(2.)]
        self.dict1 = {"a": 1.}
        self.var_dict = {"a": variables.Variable(1.), "b": variables.Variable(2.)}
    
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 15 16:58:38 UTC 2021
    - 3.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/transforms/optimize_patterns.td

                     (Arith_ConstantOp:$const_axes I32ElementsAttr:$axes)),
        (ArgMinMaxOp $logits, $const_axes),
        [(HasOneUse $softmax),
         (AxesIsLastDimension $axes, $logits)]>;
    
      def RemoveLogSoftmaxOpBefore#ArgMinMaxOp : Pat<
        (ArgMinMaxOp (TFL_LogSoftmaxOp:$log_softmax $logits),
                     (Arith_ConstantOp:$const_axes I32ElementsAttr:$axes)),
        (ArgMinMaxOp $logits, $const_axes),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 20:31:41 UTC 2024
    - 66.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/ir/tf_generated_ops.td

        TensorOf<[TF_Float16, TF_Float32, TF_Float64, TF_Int8, TF_Qint8]>:$input,
        TensorOf<[TF_Float16, TF_Float32, TF_Float64, TF_Int8, TF_Qint8]>:$filter,
        Variadic<TF_Tensor>:$args,
        Variadic<TF_Float32Tensor>:$host_args,
    
        ConfinedAttr<I64Attr, [IntMinValue<0>]>:$num_args,
        I64ArrayAttr:$strides,
        TF_AnyStrAttrOf<["SAME", "VALID", "EXPLICIT"]>:$padding,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 23:24:08 UTC 2024
    - 793K bytes
    - Viewed (0)
Back to top