Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for makeInput (0.21 sec)

  1. src/encoding/json/encode_test.go

    	tests := []struct {
    		CaseName
    		makeInput func() any // Function to create input value
    		want      string     // Expected JSON output
    	}{{
    		// Both S1 and S2 have a field named X. From the perspective of S,
    		// it is ambiguous which one X refers to.
    		// This should not serialize either field.
    		CaseName: Name("AmbiguousField"),
    		makeInput: func() any {
    			type (
    				S1 struct{ x, X int }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 29.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/device_compiler_test.cc

      EXPECT_TRUE(xla_executable == nullptr);
    }
    
    TEST_F(OpsTestBase, CompileSingleOpSuccess) {
      TF_EXPECT_OK(NodeDefBuilder("identity_op", "Identity")
                       .Input(FakeInput(DT_FLOAT))
                       .Attr("T", DT_FLOAT)
                       .Finalize(node_def()));
      TF_EXPECT_OK(InitOp());
      AddInputFromArray<float>(TensorShape({1, 2}), {6.9, 4.2});
      TF_EXPECT_OK(RunOpKernel());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 19.8K bytes
    - Viewed (0)
Back to top