Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,033 for STREAM (0.4 sec)

  1. tensorflow/cc/experimental/libtf/impl/iostream_test.cc

    TEST(OStreamTest, TestInt64) {
      Int64 x(42);
      std::stringstream stream;
      stream << x;
      ASSERT_EQ(stream.str(), "42");
    }
    
    TEST(OStreamTest, TestFloat32) {
      Float32 x(0.375);  // Exactly representable as a float.
      std::stringstream stream;
      stream << x;
      ASSERT_EQ(stream.str(), "0.375");
    }
    
    TEST(OStreamTest, TestString) {
      String s("foo");
      std::stringstream stream;
      stream << s;
      ASSERT_EQ(stream.str(), "foo");
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 18 09:47:46 UTC 2024
    - 2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Serialization.java

          Map<K, V> map, ObjectOutputStream stream) throws IOException {
        stream.writeInt(map.size());
        for (Map.Entry<K, V> entry : map.entrySet()) {
          stream.writeObject(entry.getKey());
          stream.writeObject(entry.getValue());
        }
      }
    
      /**
       * Populates a map by reading an input stream, as part of deserialization. See {@link #writeMap}
       * for the data format.
       */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Mar 06 16:06:58 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/mylasta/action/FessUserBean.java

        }
    
        public boolean hasRole(final String role) {
            return stream(user.getRoleNames()).get(stream -> stream.anyMatch(s -> s.equals(role)));
        }
    
        public boolean hasRoles(final String[] acceptedRoles) {
            return stream(user.getRoleNames())
                    .get(stream -> stream.anyMatch(s1 -> stream(acceptedRoles).get(s3 -> s3.anyMatch(s2 -> s2.equals(s1)))));
        }
    
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  4. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/btree/ByteOutputTest.groovy

            when:
            def stream = output.start(0)
            stream.writeInt(123)
            stream.writeByte(12)
            output.done()
    
            then:
            file.length() == 5
            file.seek(0)
            file.readInt() == 123
            file.readByte() == 12
    
            when:
            stream = output.start(5)
            stream.writeInt(321)
            output.done()
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/xla_device_context.h

      }
    
      // Returns a device-to-device stream, in round-robin fashion.
      se::Stream* GetDeviceToDeviceStream();
    
      Status ThenExecute(Device* device, stream_executor::Stream* stream,
                         std::function<void()> func) override;
    
     private:
      bool UseMultipleStreams() const { return stream_ != host_to_device_stream_; }
    
      // The main compute stream of the device, used to synchronize the transfer
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  6. platforms/core-runtime/process-services/src/main/java/org/gradle/process/BaseExecSpec.java

         * completes. Defaults to an empty stream.
         *
         * @return The standard input stream.
         */
        InputStream getStandardInput();
    
        /**
         * Sets the output stream to consume standard output from the process executing the command. The stream is closed
         * after the process completes.
         *
         * @param outputStream The standard output stream for the process. Must not be null.
         * @return this
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:10:02 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  7. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/source/PrintStreamLoggingSystemTest.groovy

                stream = printStream
            }
        }
    
        private final CurrentBuildOperationRef currentBuildOperationRef = CurrentBuildOperationRef.instance()
    
        def onReplacesOriginalStreamAndRemovesWhenRestored() {
            when:
            def snapshot = loggingSystem.startCapture()
    
            then:
            stream != originalStream
    
            when:
            loggingSystem.restore(snapshot)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  8. subprojects/core/src/test/groovy/org/gradle/internal/problems/DefaultProblemDiagnosticsFactoryTest.groovy

            given:
            def stream = factory.newStream()
            stream.forCurrentCaller()
            stream.forCurrentCaller()
    
            expect:
            stream.forCurrentCaller().stack.empty
    
            def failure1 = new Exception("broken")
            def diagnostics1 = stream.forCurrentCaller(failure1)
            diagnostics1.exception == failure1
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 23 17:15:42 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  9. src/io/example_test.go

    	// Output:
    	// some io.Reader stream to be read
    	// some io.Reader stream to be read
    }
    
    func ExamplePipe() {
    	r, w := io.Pipe()
    
    	go func() {
    		fmt.Fprint(w, "some io.Reader stream to be read\n")
    		w.Close()
    	}()
    
    	if _, err := io.Copy(os.Stdout, r); err != nil {
    		log.Fatal(err)
    	}
    
    	// Output:
    	// some io.Reader stream to be read
    }
    
    func ExampleReadAll() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 06 15:49:32 UTC 2022
    - 5.5K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/app/web/base/login/OpenIdConnectCredential.java

                    final Set<String> permissionSet = new HashSet<>();
                    permissionSet.add(systemHelper.getSearchRoleByUser(name));
                    stream(groups).of(stream -> stream.forEach(s -> permissionSet.add(systemHelper.getSearchRoleByGroup(s))));
                    stream(roles).of(stream -> stream.forEach(s -> permissionSet.add(systemHelper.getSearchRoleByRole(s))));
                    permissions = permissionSet.toArray(new String[permissionSet.size()]);
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 4.1K bytes
    - Viewed (0)
Back to top