Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 121 for func_0 (0.16 sec)

  1. test/func3.go

    // Verify that illegal function signatures are detected.
    // Does not compile.
    
    package main
    
    type t1 int
    type t2 int
    type t3 int
    
    func f1(*t2, x t3)	// ERROR "named"
    func f2(t1, *t2, x t3)	// ERROR "named"
    func f3() (x int, *string)	// ERROR "named"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Feb 19 03:28:53 UTC 2012
    - 505 bytes
    - Viewed (0)
  2. test/func4.go

    // license that can be found in the LICENSE file.
    
    // Verify that it is illegal to take the address of a function.
    // Does not compile.
    
    package main
    
    var notmain func()
    
    func main() {
    	var x = &main		// ERROR "address of|invalid"
    	main = notmain	// ERROR "assign to|invalid"
    	_ = x
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Feb 19 03:28:53 UTC 2012
    - 409 bytes
    - Viewed (0)
  3. test/func7.go

    // license that can be found in the LICENSE file.
    
    // Test evaluation order in if condition.
    
    package main
    
    var calledf = false
    
    func f() int {
    	calledf = true
    	return 1
    }
    
    func g() int {
    	if !calledf {
    		panic("BUG: func7 - called g before f")
    	}
    	return 0
    }
    
    func main() {
    	// gc used to evaluate g() before f().
    	if f() < g() {
    		panic("wrong answer")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 477 bytes
    - Viewed (0)
  4. test/func2.go

    package main
    
    type t1 int
    type t2 int
    type t3 int
    
    func f1(t1, t2, t3)
    func f2(t1, t2, t3 bool)
    func f3(t1, t2, x t3)
    func f4(t1, *t3)
    func (x *t1) f5(y []t2) (t1, *t3)
    func f6() (int, *string)
    func f7(*t2, t3)
    func f8(os int) int
    
    func f9(os int) int {
    	return os
    }
    func f10(err error) error {
    	return err
    }
    func f11(t1 string) string {
    	return t1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Feb 19 03:28:53 UTC 2012
    - 578 bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/utils/nms_utils.h

     public:
      explicit ConvertNMSPaddedFunc(func::FuncOp func) : func_(func) {}
    
      void RewriteFunc();
    
      LogicalResult VerifySignature();
    
     private:
      func::FuncOp func_;
    };
    
    // Abstracts the conversion of the SSD post-processing composite function to
    // TFLite.
    class ConvertSSDPostProcessFunc {
     public:
      explicit ConvertSSDPostProcessFunc(func::FuncOp func, mlir::TF::FuncAttr attr)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 19 00:13:50 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  6. tensorflow/c/c_api_experimental_test.cc

      TF_Function* funcs[1];
      DefineFunction(func_name_, &func_);
    
      TF_GraphCopyFunction(func_graph_, func_, nullptr, s_);
      ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
    
      EXPECT_EQ(TF_GraphNumFunctions(func_graph_), 1);
      EXPECT_EQ(TF_GraphGetFunctions(func_graph_, funcs, 1, s_), 1);
      ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
    
      TF_GraphRemoveFunction(func_graph_, func_name_, s_);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 17 22:27:52 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/tests/executor_tpuv1_outline_island/executor_tpuv1_outline_tpu_island.mlir

        %2:2 = tf_executor.island(%1#1) {
          %4 = "tf.opB"() : () -> tensor<f32>
          tf_executor.yield %4 : tensor<f32>
        }
        tf_executor.fetch %2#0 : tensor<f32>
      }
      func.return %0 : tensor<f32>
    }
    
    // CHECK-LABEL: @func2
    func.func @func2(%arg0 : tensor<i1>) -> tensor<i1> {
      %0 = tf_executor.graph {
        %1:2 = tf_executor.island {
          %4 = "tf.opB"() : () -> tensor<f32>
          tf_executor.yield %4 : tensor<f32>
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 04 03:54:58 UTC 2022
    - 4.9K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ir/func.go

    func (n *Func) editChildren(edit func(Node) Node)           { editNodes(n.Body, edit) }
    func (n *Func) editChildrenWithHidden(edit func(Node) Node) { editNodes(n.Body, edit) }
    
    func (f *Func) Type() *types.Type                { return f.Nname.Type() }
    func (f *Func) Sym() *types.Sym                  { return f.Nname.Sym() }
    func (f *Func) Linksym() *obj.LSym               { return f.Nname.Linksym() }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:05:44 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/common/uniform_quantized_types_test.cc

      ASSERT_TRUE(module_op);
    
      auto func_op = module_op->lookupSymbol<func::FuncOp>("fully_quantized_add");
      ASSERT_THAT(func_op, NotNull());
    
      auto add_op_itr = func_op.getBody().op_begin<mlir::stablehlo::AddOp>();
      ASSERT_THAT(add_op_itr,
                  Ne(func_op.getBody().op_end<mlir::stablehlo::AddOp>()));
    
      EXPECT_TRUE(IsOpFullyQuantized(*add_op_itr));
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/experimental/common/outline_operations.cc

          builder.getFunctionType(input_types, return_types);
    
      std::string function_name = absl::StrCat("func_", subgraph.subgraph_id_);
    
      func::FuncOp new_func = func::FuncOp::create(builder.getUnknownLoc(),
                                                   function_name, function_type);
      new_func.setVisibility(func::FuncOp::Visibility::Private);
      new_func.addEntryBlock();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.5K bytes
    - Viewed (0)
Back to top