Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for MakeOp (0.36 sec)

  1. tensorflow/cc/gradients/image_grad_test.cc

        auto data_flat = data.flat<T>();
        for (int i = 0; i < data_flat.size(); ++i) {
          data_flat(i) = T(i);
        }
        return data;
      }
    
      template <typename T>
      void MakeOp(const OpType op_type, const Tensor& x_data, const Input& y_shape,
                  const bool align_corners, const bool half_pixel_centers,
                  Output* x, Output* y) {
        *x = Const<T>(scope_, x_data);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 15 04:08:05 UTC 2019
    - 12.1K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/decompose.go

    		// there's no need to record a name
    		if !fs.Type.IsArray() && !fs.Type.IsStruct() {
    			slots = maybeAppend(f, slots, fs)
    		}
    	}
    
    	makeOp := StructMakeOp(n)
    	var keep []*Value
    	// create named values for each struct field
    	for _, v := range f.NamedValues[*name] {
    		if v.Op != makeOp {
    			keep = append(keep, v)
    			continue
    		}
    		for i := 0; i < len(fnames); i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 23 21:22:15 UTC 2022
    - 13.4K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/SequentialExecutorTest.java

        class FakeOp implements Runnable {
          final int op;
    
          FakeOp(int op) {
            this.op = op;
          }
    
          @Override
          public void run() {
            callOrder.add(op);
          }
        }
    
        e.execute(new FakeOp(0));
        e.execute(new FakeOp(1));
        e.execute(new FakeOp(2));
        fakePool.runAll();
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 11.4K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/SequentialExecutorTest.java

        class FakeOp implements Runnable {
          final int op;
    
          FakeOp(int op) {
            this.op = op;
          }
    
          @Override
          public void run() {
            callOrder.add(op);
          }
        }
    
        e.execute(new FakeOp(0));
        e.execute(new FakeOp(1));
        e.execute(new FakeOp(2));
        fakePool.runAll();
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 11.4K bytes
    - Viewed (0)
  5. src/runtime/trace.go

    // timer *and* nothing else will call wake concurrently.
    func (s *wakeableSleep) close() {
    	// Set wakeup to nil so that a late timer ends up being a no-op.
    	lock(&s.lock)
    	if raceenabled {
    		raceacquire(unsafe.Pointer(&s.lock))
    	}
    	wakeup := s.wakeup
    	s.wakeup = nil
    
    	// Close the channel.
    	close(wakeup)
    
    	if raceenabled {
    		racerelease(unsafe.Pointer(&s.lock))
    	}
    	unlock(&s.lock)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 37.1K bytes
    - Viewed (0)
  6. src/runtime/sema.go

    // Intended use is provide a sleep and wakeup
    // primitive that can be used in the contended case
    // of other synchronization primitives.
    // Thus it targets the same goal as Linux's futex,
    // but it has much simpler semantics.
    //
    // That is, don't think of these as semaphores.
    // Think of them as a way to implement sleep and wakeup
    // such that every sleep is paired with a single wakeup,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 19K bytes
    - Viewed (0)
  7. src/internal/trace/trace_test.go

    				t.Logf("%d: %q", samples, stack)
    			}
    			t.Logf("CPU profile:\n%s", stderr)
    		}
    	})
    }
    
    func TestTraceFutileWakeup(t *testing.T) {
    	testTraceProg(t, "futile-wakeup.go", func(t *testing.T, tb, _ []byte, _ bool) {
    		// Check to make sure that no goroutine in the "special" trace region
    		// ends up blocking, unblocking, then immediately blocking again.
    		//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  8. src/runtime/netpoll_solaris.go

    	default:
    		throw("runtime: bad mode")
    	}
    	unlock(&pd.lock)
    }
    
    // netpollBreak interrupts a port_getn wait.
    func netpollBreak() {
    	// Failing to cas indicates there is an in-flight wakeup, so we're done here.
    	if !netpollWakeSig.CompareAndSwap(0, 1) {
    		return
    	}
    
    	// Use port_alert to put portfd into alert mode.
    	// This will wake up all threads sleeping in port_getn on portfd,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  9. src/runtime/HACKING.md

    For one-shot notifications, use `note`, which provides `notesleep` and
    `notewakeup`. Unlike traditional UNIX `sleep`/`wakeup`, `note`s are
    race-free, so `notesleep` returns immediately if the `notewakeup` has
    already happened. A `note` can be reset after use with `noteclear`,
    which must not race with a sleep or wakeup. Like `mutex`, blocking on
    a `note` blocks the M. However, there are different ways to sleep on a
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  10. src/cmd/trace/main.go

    	mux.Handle("/", traceviewer.MainHandler([]traceviewer.View{
    		{Type: traceviewer.ViewProc, Ranges: ranges},
    		// N.B. Use the same ranges for threads. It takes a long time to compute
    		// the split a second time, but the makeup of the events are similar enough
    		// that this is still a good split.
    		{Type: traceviewer.ViewThread, Ranges: ranges},
    	}))
    
    	// Catapult handlers.
    	mux.Handle("/trace", traceviewer.TraceHandler())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 10.4K bytes
    - Viewed (0)
Back to top