Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for StringStream (0.14 sec)

  1. tensorflow/compiler/mlir/tf2xla/internal/mlir_pass_instrumentation_test.cc

    static const char* kTestInstrumentationSearch = "tf.Identity";
    
    struct StringStream : public llvm::raw_ostream {
      StringStream() { SetUnbuffered(); }
      ~StringStream() override = default;
      uint64_t current_pos() const override { return 0; }
    
      void write_impl(const char* ptr, size_t size) override {
        ss.write(ptr, size);
      }
      std::stringstream ss;
    };
    
    class TestPassInstrumentation : public ::testing::Test {
     public:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Sep 19 22:54:26 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  2. 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;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 18 09:47:46 UTC 2024
    - 2K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/libs/googleTest/1.7.0/include/gtest/gtest-message.h

     public:
      // Constructs an empty Message.
      Message();
    
      // Copy constructor.
      Message(const Message& msg) : ss_(new ::std::stringstream) {  // NOLINT
        *ss_ << msg.GetString();
      }
    
      // Constructs a Message from a C-string.
      explicit Message(const char* str) : ss_(new ::std::stringstream) {
        *ss_ << str;
      }
    
    #if GTEST_OS_SYMBIAN
      // Streams a value (either a pointer or not) to this object.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 9K bytes
    - Viewed (0)
  4. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/gtest-message.h

     public:
      // Constructs an empty Message.
      Message();
    
      // Copy constructor.
      Message(const Message& msg) : ss_(new ::std::stringstream) {  // NOLINT
        *ss_ << msg.GetString();
      }
    
      // Constructs a Message from a C-string.
      explicit Message(const char* str) : ss_(new ::std::stringstream) {
        *ss_ << str;
      }
    
    #if GTEST_OS_SYMBIAN
      // Streams a value (either a pointer or not) to this object.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 9K bytes
    - Viewed (0)
  5. tensorflow/cc/experimental/libtf/tests/value_test.cc

      TaggedValue tuple = TaggedValue::Tuple();
      tuple.tuple().push_back(TaggedValue(int64_t(310)));
      list.list().push_back(valuei);
      list.list().push_back(valuef);
      list.list().push_back(tuple);
      std::stringstream stream;
      stream << list;
      ASSERT_EQ(stream.str(), "[3, 3, (310, ), ]");
    }
    
    TEST(ValueTest, TestString) {
      TaggedValue value1a("string1");
      std::string s = "string";
      s += "1";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Sep 01 11:18:25 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_config.cc

          return true;
        default:
          return false;
      }
    }
    
    namespace mlir {
    namespace quant {
    namespace {
    bool GetBooleanSpecs(const std::string& bool_val) {
      bool result;
      std::stringstream iss(bool_val);
      iss >> std::boolalpha >> result;
      return result;
    }
    }  // namespace
    
    void ParseCustomOpSpecs(const absl::string_view node_names,
                            const CustomOpUpdateOptions& update_option,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 07:39:40 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  7. tensorflow/compiler/jit/node_matchers.cc

            ::std::stringstream ss;
            input_matchers->front().DescribeTo(&ss);
            printed_something = true;
            *os << "matching " << ss.str();
          } else {
            int edge_idx = 0;
            for (const ::testing::Matcher<OutEdge>& matcher : (*input_matchers)) {
              *os << "\n  [" << edge_idx << "] matching (";
              ::std::stringstream ss;
              matcher.DescribeTo(&ss);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jun 03 16:15:20 UTC 2022
    - 16.8K bytes
    - Viewed (0)
  8. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/internal/gtest-string.h

    };  // class String
    
    // Gets the content of the stringstream's buffer as an std::string.  Each '\0'
    // character in the buffer is replaced with "\\0".
    GTEST_API_ std::string StringStreamToString(::std::stringstream* stream);
    
    }  // namespace internal
    }  // namespace testing
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/libs/googleTest/1.7.0/include/gtest/internal/gtest-string.h

    };  // class String
    
    // Gets the content of the stringstream's buffer as an std::string.  Each '\0'
    // character in the buffer is replaced with "\\0".
    GTEST_API_ std::string StringStreamToString(::std::stringstream* stream);
    
    }  // namespace internal
    }  // namespace testing
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  10. tensorflow/cc/experimental/libtf/function.cc

        if (!Match(structure, wrapped_t)) {
          // Denotes a corrupted SavedModel in which output_signature does not match
          // FunctionDef outputs.
          std::stringstream stream;
          stream << "Shape and dtype of tensor " << wrapped_t
                 << " does not match that in signature " << structure;
          return tensorflow::errors::Internal(stream.str());
        }
        return wrapped_t;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 04 19:49:06 UTC 2024
    - 9.1K bytes
    - Viewed (0)
Back to top