Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for Read (0.17 sec)

  1. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc

      ops->read_only_memory_region_ops = static_cast<TF_ReadOnlyMemoryRegionOps*>(
          plugin_memory_allocate(TF_READ_ONLY_MEMORY_REGION_OPS_SIZE));
      ops->read_only_memory_region_ops->cleanup =
          tf_read_only_memory_region::Cleanup;
      ops->read_only_memory_region_ops->data = tf_read_only_memory_region::Data;
      ops->read_only_memory_region_ops->length = tf_read_only_memory_region::Length;
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Sun Mar 24 20:08:23 GMT 2024
    - 15.8K bytes
    - Viewed (0)
  2. tensorflow/c/eager/gradients_test.cc

                  &num_retvals, &forward_op, tape.get(), registry);
      ASSERT_EQ(errors::OK, s.code()) << s.message();
    
      string read_message;
      s = forward_op.attrs.Get("message", &read_message);
      ASSERT_EQ(errors::OK, s.code()) << s.message();
      ASSERT_EQ(read_message, message);
    }
    
    Status RecordOperationWithNullGradientFunctionModel(
        AbstractContext* ctx, absl::Span<AbstractTensorHandle* const> inputs,
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 7K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/filesystem/modular_filesystem.cc

    }
    
    Status ModularRandomAccessFile::Read(uint64 offset, size_t n,
                                         StringPiece* result, char* scratch) const {
      if (ops_->read == nullptr)
        return errors::Unimplemented(
            tensorflow::strings::StrCat("Read() not implemented for ", filename_));
    
      UniquePtrTo_TF_Status plugin_status(TF_NewStatus(), TF_DeleteStatus);
      int64_t read =
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Sep 06 19:12:29 GMT 2023
    - 23.1K bytes
    - Viewed (0)
  4. tensorflow/c/eager/c_api_test.cc

        ASSERT_TRUE(std::find(device_names.begin(), device_names.end(),
                              remote_device) != device_names.end());
      }
    
      // Create a variable using `ctx_0`.
      // Read the variable using `ctx_1`. This read should succeed.
      // 1. Create a variable on `remote_device`, using `ctx_0`.
      TFE_TensorHandle* handle_0 =
          CreateVariable(ctx_0, 1.2, remote_device, /*variable_name=*/"var2");
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 20:50:20 GMT 2023
    - 94.6K bytes
    - Viewed (1)
  5. tensorflow/c/eager/c_api_experimental_test.cc

                              remote_device) != device_names.end());
      }
    
      // Create a variable using `ctx_0`.
      // Replace worker1 using a new worker, and update the contexts.
      // Read the variable using `ctx_1`. This read should succeed.
      //
      // 1. Create a variable on `remote_device`, using `ctx_0`.
      TFE_TensorHandle* handle_0 =
          CreateVariable(ctx_0, 1.2, remote_device, /*variable_name=*/"var");
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 03:14:26 GMT 2023
    - 31.5K bytes
    - Viewed (1)
  6. tensorflow/c/eager/gradients.cc

    #include "tensorflow/core/platform/errors.h"
    
    namespace tensorflow {
    namespace gradients {
    namespace {
    
    // TODO(b/172558015): Using the pointer address as the identifier for the tensor
    // may lead to collisions. Introduce another way to get a unique id for this
    // tensor.
    int64_t ToId(const AbstractTensorHandle* t) {
      return static_cast<int64_t>(reinterpret_cast<uintptr_t>(t));
    }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  7. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc

        TF_SetStatus(status, TF_UNKNOWN, "Could not get content-length header");
        return -1;
      }
      // `TF_OUT_OF_RANGE` isn't considered as an error. So we clear it here.
      TF_SetStatus(status, TF_OK, "");
      TF_VLog(1, "Successful read of %s @ %u of size: %u", path.c_str(), offset,
              read);
      stream.read(buffer, read);
      read = stream.gcount();
      if (read < buffer_size) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Aug 23 06:55:53 GMT 2023
    - 46.9K bytes
    - Viewed (0)
  8. tensorflow/c/c_api_function_test.cc

      // Get attr
      AttrValue read_attr;
      GetAttr("test_attr_name", &read_attr);
      ASSERT_EQ(attr.DebugString(), read_attr.DebugString());
    
      // Retrieve the same attr after save/restore
      Reincarnate();
      AttrValue read_attr2;
      GetAttr("test_attr_name", &read_attr2);
      ASSERT_EQ(attr.DebugString(), read_attr2.DebugString());
    }
    
    TEST_F(CApiFunctionTest, Description) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 20 22:08:54 GMT 2023
    - 63.6K bytes
    - Viewed (6)
Back to top