Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for plated (0.16 sec)

  1. tensorflow/c/eager/custom_device_test.cc

                            &arrived, &executed, status.get());
      ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get());
    
      // Create a variable handle placed on the custom device.
      std::unique_ptr<TFE_Op, decltype(&TFE_DeleteOp)> op(
          TFE_NewOp(context.get(), "VarHandleOp", status.get()), TFE_DeleteOp);
      ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get());
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Aug 27 23:39:24 GMT 2020
    - 18.4K bytes
    - Viewed (0)
  2. tensorflow/c/c_api_experimental.cc

      TF_Output output{dequeue_op, 0};
      TF_Tensor* ret;
      TF_SessionRun(session, /*run_options*/ nullptr,
                    // input related parameters
                    /*inputs*/ nullptr, /*input_values*/ nullptr, /*ninputs*/ 0,
                    // output related parameters
                    /*outputs*/ &output, /*output_values*/ &ret,
                    /*noutputs*/ 1,
                    /*targets*/ nullptr, /*ntargets*/ 0,
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 29.4K bytes
    - Viewed (0)
  3. tensorflow/c/eager/parallel_device/parallel_device.cc

      if (*requested_placement == '\0') {
        TF_SetStatus(
            status, TF_INTERNAL,
            "Ops must be placed on the parallel device explicitly, or their inputs "
            "first un-packed. Got an un-placed op with an input placed on the "
            "parallel device.");
        return;
      }
      TFE_Context* context = TFE_OpGetContext(original_op, status);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Mar 29 22:05:31 GMT 2023
    - 18.3K bytes
    - Viewed (0)
  4. tensorflow/c/eager/c_api_distributed_test.cc

      EXPECT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
    
      // Pack 3 variable handles into one TFE_TensorHandle.
      // When remote is false, function device is placed on task0. Handle types are
      // REMOTE, REMOTE, LOCAL on task0. When remote is true, function device is
      // placed on task1, Handle types are LOCAL, REMOTE, LOCAL on task1.
      int num_replicas = 3;
      std::vector<TFE_TensorHandle*> handles = {h0, h1, h2};
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 23.5K bytes
    - Viewed (0)
  5. tensorflow/c/eager/parallel_device/parallel_device_testlib.cc

      int num_retvals = 1;
      TFE_Execute(op.get(), &result_handle, &num_retvals, status);
      if (TF_GetCode(status) != TF_OK) return nullptr;
      return TensorHandlePtr(result_handle);
    }
    
    // Create and modify a variable placed on a parallel device which composes
    // `first_device` and `second_device`.
    void BasicTestsForTwoDevices(TFE_Context* context, const char* first_device,
                                 const char* second_device) {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Jun 15 15:44:44 GMT 2021
    - 12.5K bytes
    - Viewed (0)
  6. tensorflow/c/eager/custom_device_testutil.cc

      LoggingDevice* dev = reinterpret_cast<LoggingDevice*>(device_info);
      if (dev->strict_scope_placement && *requested_placement == '\0') {
        TF_SetStatus(s, TF_INTERNAL,
                     "Ops must be placed on the device explicitly, or their inputs "
                     "first copied to other devices.");
        return;
      }
      TFE_Context* context = TFE_OpGetContext(original_op, s);
      if (TF_GetCode(s) != TF_OK) return;
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Mar 03 20:47:31 GMT 2021
    - 8.3K bytes
    - Viewed (0)
  7. tensorflow/c/eager/parallel_device/parallel_device_test.cc

      ASSERT_EQ(TF_GetCode(status.get()), TF_OK) << TF_Message(status.get());
    
      ExpectScalarEq<float>(second_components[1].get(), 9.);
    
      // Verify that the mirrors are placed on the component devices.
      std::string first_device = TFE_TensorHandleBackingDeviceName(
          second_components[0].get(), status.get());
      ASSERT_EQ(second_underlying_devices[0], first_device);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Jul 08 23:47:35 GMT 2021
    - 29.3K bytes
    - Viewed (1)
  8. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem_test.cc

      EXPECT_TF_OK(status_);
    
      auto result = ReadAll(dst);
      EXPECT_TF_OK(status_);
      EXPECT_EQ("test_old", result);
    }
    
    // These tests below are ported from
    // `//tensorflow/core/platform/cloud:gcs_file_system_test`
    TEST_F(GCSFilesystemTest, NewRandomAccessFile_NoBlockCache) {
      tf_gcs_filesystem::InitTest(filesystem_, false, 0, 0, 0, 0, 0, status_);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Aug 31 12:04:23 GMT 2020
    - 24.9K bytes
    - Viewed (0)
Back to top