Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for create_stream (0.24 sec)

  1. tensorflow/c/experimental/stream_executor/stream_executor_test.cc

      int64_t total = 0;
      executor->DeviceMemoryUsage(&free, &total);
      ASSERT_EQ(free, 45);
      ASSERT_EQ(total, 7);
    }
    
    TEST_F(StreamExecutorTest, CreateStream) {
      static bool stream_created = false;
      static bool stream_deleted = false;
      se_.create_stream = [](const SP_Device* const device, SP_Stream* stream,
                             TF_Status* const status) -> void {
        *stream = new SP_Stream_st(14);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 20 19:54:04 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/stream_executor/stream_executor_internal.h

        parent()->DeallocateStream(this);
        Destroy();
      }
    
      absl::Status Create() {
        tensorflow::TF_StatusPtr c_status(TF_NewStatus());
        stream_executor_->create_stream(device_, &stream_handle_, c_status.get());
        absl::Status s = tensorflow::StatusFromTF_Status(c_status.get());
        return s;
      }
    
      void Destroy() {
        if (stream_handle_ != nullptr) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jun 14 07:39:19 UTC 2024
    - 8K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/stream_executor/stream_executor.cc

        TF_VALIDATE_NOT_NULL(SP_StreamExecutor, se, unified_memory_deallocate);
      }
      TF_VALIDATE_NOT_NULL(SP_StreamExecutor, se, device_memory_usage);
      TF_VALIDATE_NOT_NULL(SP_StreamExecutor, se, create_stream);
      TF_VALIDATE_NOT_NULL(SP_StreamExecutor, se, destroy_stream);
      TF_VALIDATE_NOT_NULL(SP_StreamExecutor, se, create_stream_dependency);
      TF_VALIDATE_NOT_NULL(SP_StreamExecutor, se, get_stream_status);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jun 14 07:39:19 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/xla_host_send_recv_device_context_test.cc

          stream_executor::PlatformManager::PlatformWithName("CUDA").value();
      stream_executor::StreamExecutor* executor =
          platform->ExecutorForDevice(0).value();
      TF_ASSERT_OK_AND_ASSIGN(auto stream, executor->CreateStream());
    
      se::DeviceMemoryBase gpu_dst{device_tensor.data(), 4 * sizeof(float)};
      xla::Shape shape;
      TF_ASSERT_OK(TensorShapeToXLAShape(DT_FLOAT, TensorShape({2, 2}), &shape));
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 22:46:36 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  5. pkg/kubelet/server/server_test.go

    			defer conn.Close()
    
    			h := http.Header{}
    			h.Set(api.StreamType, api.StreamTypeError)
    			_, err = conn.CreateStream(h)
    			require.NoError(t, err, "creating error stream")
    
    			if test.stdin {
    				h.Set(api.StreamType, api.StreamTypeStdin)
    				stream, err := conn.CreateStream(h)
    				require.NoError(t, err, "creating stdin stream")
    				_, err = stream.Write([]byte(expectedStdin))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 51.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/jit/xla_device.cc

          // pool to avoid potential lifetime issues.
          TF_ASSIGN_OR_RETURN(
              stream_,
              backend->stream_executors()[device_ordinal_]->CreateStream());
          TF_RETURN_IF_ERROR(EnsureStreamOkLocked(backend, "stream", &stream_,
                                                  &need_new_device_context));
          (*global_compute_streams_)[device_ordinal_] = stream_;
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 20 21:05:42 UTC 2024
    - 24.3K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/util/proxy/streamtunnel_test.go

    	randomSize := 1024 * 1024
    	randomData := make([]byte, randomSize)
    	_, err = rand.Read(randomData)
    	require.NoError(t, err)
    	var actual []byte
    	go func() {
    		clientStream, err := spdyClient.CreateStream(http.Header{})
    		require.NoError(t, err)
    		_, err = io.Copy(clientStream, bytes.NewReader(randomData))
    		require.NoError(t, err)
    		clientStream.Close() //nolint:errcheck
    	}()
    	select {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 02:21:50 UTC 2024
    - 22.7K bytes
    - Viewed (0)
Back to top