Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 58 for test_func (0.18 sec)

  1. tensorflow/compiler/mlir/tensorflow/tests/side-effect-analysis-test.mlir

            // expected-remark@above {{Successors: {5}}}
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Dec 20 04:39:18 UTC 2023
    - 129.7K bytes
    - Viewed (0)
  2. tensorflow/c/eager/unified_api_testutil.cc

                    absl::Span<AbstractTensorHandle* const> inputs,
                    absl::Span<AbstractTensorHandle*> outputs, bool use_function) {
      if (use_function) {
        const char* fn_name = "test_fn";
        core::RefCountPtr<AbstractFunction> scoped_func;
        // Returning null tensors from a tf.function is not supported, so we keep
        // track of indices in the model's outputs are nullptr in this set.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 27 13:57:45 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/prepare_tpu_computation_for_tf_export.cc

        for (Type ty : op.getResultTypes()) {
          shape_attrs.push_back(TF::ShapeAttr::get(rewriter.getContext(),
                                                   mlir::cast<ShapedType>(ty)));
        }
    
        // Clone the `host_func` in the `host_mlir_module` attribute if it exists
        // and use it for `shape_inference_graph` attribute on XlaHostCompute.
        func::FuncOp cloned_func;
        SymbolTable manager(op->getParentOfType<ModuleOp>());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  4. src/cmd/internal/obj/ppc64/asm_test.go

    //
    // VR and FPR disjointly overlap VSR, interpreting as VSR registers should produce the correctly overlapped VSR.
    // REG_FPx & 63 == x
    // REG_Vx & 63 == x + 32
    func TestRegValueAlignment(t *testing.T) {
    	tstFunc := func(rstart, rend, msk, rout int) {
    		for i := rstart; i <= rend; i++ {
    			if i&msk != rout {
    				t.Errorf("%v is not aligned to 0x%X (expected %d, got %d)\n", rconv(i), msk, rout, rstart&msk)
    			}
    			rout++
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 09 22:14:57 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  5. pkg/kubelet/cm/devicemanager/manager_test.go

    	}
    	testCases := []struct {
    		description string
    		count       int
    		devices     []pluginapi.Device
    		testfunc    func(manager *wrappedManagerImpl)
    	}{
    		{
    			description: "GetTopologyHints data race when update device",
    			count:       10,
    			devices:     devs,
    			testfunc: func(manager *wrappedManagerImpl) {
    				manager.GetTopologyHints(testPod, &testPod.Spec.Containers[0])
    			},
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 65K bytes
    - Viewed (0)
  6. src/expvar/expvar_test.go

    		i := int(atomic.AddInt32(&n, 1)-1) % len(procKeys)
    		keys := procKeys[i]
    
    		for pb.Next() {
    			for _, k := range keys {
    				m.Add(k, 1)
    			}
    		}
    	})
    }
    
    func TestFunc(t *testing.T) {
    	RemoveAll()
    	var x any = []string{"a", "b"}
    	f := Func(func() any { return x })
    	if s, exp := f.String(), `["a","b"]`; s != exp {
    		t.Errorf(`f.String() = %q, want %q`, s, exp)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:46:19 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/jit/extract_outside_compilation_pass.cc

      //    XlaRecvAtHost/XlaSendFromHost) to sequencer node.
      // c) Clear node_def.device(), so device placer won't get confused.
      for (const string& host_func : outside_compilation_host_graphs) {
        VLOG(4) << "Expanding host graph " << host_func;
        // Temporarily use "0" as "_device_ordinal". It will be reset to placeholder
        // value after we expanded all host graphs. We cannot just use placeholder
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 104.7K bytes
    - Viewed (0)
  8. src/path/filepath/path_windows_test.go

    		if err != nil {
    			t.Errorf("toNorm(%s) failed: %v (wd=%s)\n", arg, err, wd)
    		} else if got != want {
    			t.Errorf("toNorm(%s) returns %s, but %s expected (wd=%s)\n", arg, got, want, wd)
    		}
    	}
    }
    
    func TestUNC(t *testing.T) {
    	// Test that this doesn't go into an infinite recursion.
    	// See golang.org/issue/15879.
    	defer debug.SetMaxStack(debug.SetMaxStack(1e6))
    	filepath.Glob(`\\?\c:\*`)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 20:38:54 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/tests/tf-ops.mlir

      func.return
    }
    
    // -----
    
    func.func @testXlaHostComputeMlir(%arg0: tensor<2xf32>) -> () {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 23 14:40:35 UTC 2023
    - 236.4K bytes
    - Viewed (0)
  10. src/cmd/go/internal/test/test.go

    'Go test' recompiles each package along with any files with names matching
    the file pattern "*_test.go".
    These additional files can contain test functions, benchmark functions, fuzz
    tests and example functions. See 'go help testfunc' for more.
    Each listed package causes the execution of a separate test binary.
    Files whose names begin with "_" (including "_test.go") or "." are ignored.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 71.9K bytes
    - Viewed (0)
Back to top