Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for makeInput (0.18 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. src/archive/tar/reader_test.go

    		wantErr  error
    	}{{
    		input:   makeInput(FormatUnknown, ""),
    		wantErr: ErrHeader,
    	}, {
    		input:    makeInput(FormatGNU, "1234", "fewa"),
    		wantSize: 01234,
    		wantErr:  ErrHeader,
    	}, {
    		input:    makeInput(FormatGNU, "0031"),
    		wantSize: 031,
    	}, {
    		input:   makeInput(FormatGNU, "80"),
    		wantErr: ErrHeader,
    	}, {
    		input: makeInput(FormatGNU, "1234",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 21 21:14:38 UTC 2022
    - 47.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/xla_launch_util_test.cc

    }
    
    TEST_F(PjRtExecutionUtilTest, PopulateCtxOutputs) {
      XlaOpRegistry::RegisterCompilationKernels();
      TF_EXPECT_OK(NodeDefBuilder("AddV2", "AddV2")
                       .Input(FakeInput(DT_INT32))
                       .Input(FakeInput(DT_INT32))
                       .Attr("T", DT_INT32)
                       .Device("/job:localhost/replica:0/task:0/device:XLA_CPU:0")
                       .Finalize(node_def()));
      TF_EXPECT_OK(InitOp());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 09:53:30 UTC 2024
    - 28.8K bytes
    - Viewed (0)
  4. tensorflow/c/kernels/bitcast_op_test.cc

      OpDef op_def = reg->op_def;
      NodeDef def;
      TF_CHECK_OK(NodeDefBuilder("dummy", &op_def)
                      .Attr("type", DT_INT8)
                      .Attr("T", DT_INT64)
                      .Input(FakeInput(DT_INT64))
                      .Finalize(&def));
      shape_inference::InferenceContext c(0, def, op_def, {S({3, 4})}, {}, {}, {});
      std::vector<shape_inference::ShapeHandle> input_shapes;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jul 18 15:10:51 UTC 2022
    - 5.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/xla_compile_util_test.cc

    #include "tensorflow/core/tpu/tpu_defs.h"
    
    namespace tensorflow {
    namespace {
    
    TEST_F(OpsTestBase, CreateSingleOpGraph) {
      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 May 16 21:48:05 UTC 2023
    - 6K bytes
    - Viewed (0)
  6. 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