Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for funcMap (0.26 sec)

  1. src/html/template/exec_test.go

    	return s.String()
    }
    
    func mapOfThree() any {
    	return map[string]int{"three": 3}
    }
    
    func testExecute(execTests []execTest, template *Template, t *testing.T) {
    	b := new(strings.Builder)
    	funcs := FuncMap{
    		"add":         add,
    		"count":       count,
    		"dddArg":      dddArg,
    		"echo":        echo,
    		"makemap":     makemap,
    		"mapOfThree":  mapOfThree,
    		"oneArg":      oneArg,
    		"returnInt":   returnInt,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 24 21:59:12 UTC 2024
    - 57.6K bytes
    - Viewed (0)
  2. src/html/template/escape_test.go

    		JS(`c && alert("Hello, World!");`),
    		JSStr(`Hello, World & O'Reilly\x21`),
    		URL(`greeting=H%69&addressee=(World)`),
    	}
    
    	for n0, m := range redundantFuncs {
    		f0 := funcMap[n0].(func(...any) string)
    		for n1 := range m {
    			f1 := funcMap[n1].(func(...any) string)
    			for _, input := range inputs {
    				want := f0(input)
    				if got := f1(want); want != got {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 16 03:29:27 UTC 2023
    - 56.2K bytes
    - Viewed (0)
  3. src/text/template/exec_test.go

    	return s.String()
    }
    
    func mapOfThree() any {
    	return map[string]int{"three": 3}
    }
    
    func testExecute(execTests []execTest, template *Template, t *testing.T) {
    	b := new(strings.Builder)
    	funcs := FuncMap{
    		"add":         add,
    		"count":       count,
    		"dddArg":      dddArg,
    		"die":         func() bool { panic("die") },
    		"echo":        echo,
    		"makemap":     makemap,
    		"mapOfThree":  mapOfThree,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 22:23:55 UTC 2024
    - 60.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting.cc

                it->second.data_type;
          }
        }
      }
      func_op.eraseArguments(indices_to_erase);
      func_op.setType(
          FunctionType::get(func_op.getContext(), new_types,
                            llvm::to_vector<4>(return_op->getOperandTypes())));
    }
    
    // Lifts reads/writes of resource arguments from func_op and changes its
    // signature. resource_data_types is the (index, data type) pair for each
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_pipelining.cc

      auto out_types = GetValueTypes(outputs);
      builder.setInsertionPointToEnd(&module.getBodyRegion().back());
      auto func_op = builder.create<func::FuncOp>(
          module.getLoc(), name, builder.getFunctionType(in_types, out_types));
      func_op.setPrivate();
      symbol_table.insert(func_op);
      return func_op;
    }
    
    TF::StatefulPartitionedCallOp EncapsulateOpsInFunc(
        OpBuilder& builder, SymbolTable& symbol_table,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 92.9K bytes
    - Viewed (0)
  6. tensorflow/c/c_api_function_test.cc

      // Use, run, and verify
      TF_Operation* two = ScalarConst(2, host_graph_, s_);
      TF_Operation* func_feed = Placeholder(host_graph_, s_);
      TF_Operation* func_op = Use({two, func_feed});
      Run({{func_feed, Int32Tensor(3)}}, {{func_op, 0}, {func_op, 1}}, {3, 2});
      VerifyFDef(empty_, M({{"feed1_0"}, {"feed2_0"}}), M({{"feed2"}, {"feed1"}}),
                 {{"feed1_0", "feed1"}, {"feed2_0", "feed2"}}, {});
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 20 22:08:54 UTC 2023
    - 63.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize_composite_functions.cc

            /*is_hybrid=*/is_hybrid);
    
        const mlir::func::FuncOp quantized_func = dyn_cast_or_null<func::FuncOp>(
            symbol_table.lookup(quantized_function_name));
        if (quantized_func == nullptr) {
          call_op->emitError("Failed to find the quantized function: " +
                             quantized_function_name);
          return failure();
        }
        mlir::func::FuncOp new_quantized_func =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 54.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/ir/tf_ops.td

        func::FuncOp ResolveThenFunction(::mlir::SymbolTableCollection* table) {
          if (table)
            return table->lookupNearestSymbolFrom<func::FuncOp>(*this, getThenBranchAttr());
          return SymbolTable::lookupNearestSymbolFrom<func::FuncOp>(
            *this, getThenBranchAttr());
        }
        // TODO(b/204997177): Deprecate and remove.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 04:08:35 UTC 2024
    - 90.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/flatbuffer_import.cc

            queue.push_back(op);
          }
        }
      }
    
      return visited;
    }
    
    // We want to adjust the func op according to some cross ops information.
    static StatusOr<FuncOp> PostProcessFuncOp(FuncOp func) {
      OpBuilder builder(func);
      // When a quantized constant is imported, its quantization parameter is set
      // to be narrow range. Here revert to be the fully range if the user doesn't
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 66.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc

        then_branch_op.setVisibility(func::FuncOp::Visibility::Private);
    
        // Constructs `else_branch`, which is executed when `if_cond` evaluates to
        // false.
        auto else_branch_op =
            rewriter.create<func::FuncOp>(loc, "cond_false", func_type);
        CreateCondFalseBranch(loc, shape_dtype, result_type, else_branch_op,
                              &rewriter);
        else_branch_op.setVisibility(func::FuncOp::Visibility::Private);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 70.7K bytes
    - Viewed (0)
Back to top