Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for have (0.14 sec)

  1. tensorflow/c/eager/dlpack_test.cc

      TestHandleFromDLPack(status, ctx, {4}, {1});
      TestHandleFromDLPack(status, ctx, {4, 3, 2}, {});
      TestHandleFromDLPack(status, ctx, {4, 3, 2}, {6, 2, 1});
      // Test that dims with size=1 can have any stride.
      TestHandleFromDLPack(status, ctx, {1}, {1});
      TestHandleFromDLPack(status, ctx, {1}, {0});
      TestHandleFromDLPack(status, ctx, {4, 1, 2}, {2, 1, 1});
      TestHandleFromDLPack(status, ctx, {4, 1, 2}, {2, 0, 1});
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Jun 30 03:04:46 GMT 2023
    - 4.4K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem_helper.cc

      int dst_fd = open(dst, O_WRONLY | O_CREAT | O_TRUNC, open_mode);
      if (dst_fd < 0) {
        close(src_fd);
        return -1;
      }
    
      // Both files have been opened, do the transfer.
      // Since errno would be overridden by `close` below, save it here.
      int error_code = 0;
      if (CopyFileContents(dst_fd, src_fd, size) < 0) error_code = errno;
    
      close(src_fd);
      close(dst_fd);
      if (error_code != 0) {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Jan 16 05:36:52 GMT 2020
    - 2.1K bytes
    - Viewed (1)
  3. tensorflow/c/eager/c_api_unified_experimental.cc

    }  // end namespace tensorflow
    
    // =============================================================================
    // Public C API entry points
    //
    // These are only the generic entry points for the C API. This file does not
    // have any visibility into the graph/eager implementation and is only providing
    // C bindings to the abstract classes defined in the
    // c_api_unified_experimental_internal.h header.
    //
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 9K bytes
    - Viewed (0)
  4. tensorflow/c/c_api.cc

      return true;
    }
    
    // Copies `src_graph` into `dst_graph`. Any node in `src_graph` with input
    // `src_inputs[i]` will have that input replaced with `dst_inputs[i]`.  `prefix`
    // will be prepended to copied node names. `control_deps` are nodes in
    // `dst_graph` that the copied `src_graph` nodes will have control dependencies
    // on. `return_nodes` are nodes in `src_graph`, and the new corresponding nodes
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 102.3K bytes
    - Viewed (0)
  5. tensorflow/c/c_api_experimental.cc

      }
    
      const tensorflow::OpDef_ArgDef& input_arg = op_def->input_arg()[input_index];
    
      if (input_arg.number_attr().empty()) {
        status->status = tensorflow::errors::NotFound(
            op_name, " does not have number_attr() defined.");
        return nullptr;
      }
    
      // The returned string is owned by OpRegistry, so liveness is not a concern.
      return input_arg.number_attr().c_str();
    }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 29.4K bytes
    - Viewed (0)
  6. tensorflow/c/eager/parallel_device/parallel_device_lib.cc

        std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> await_status(
            TF_NewStatus(), TF_DeleteStatus);
        // Wait until all pending nodes have completed since they may have a
        // reference to default_cancellation_manager_. We ignore the status return
        // since we already have a bad status to propagate.
        TFE_ContextAsyncWait(context, await_status.get());
        // Reset the cancellation manager on a bad status. Otherwise we'll cancel
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Feb 09 07:47:20 GMT 2024
    - 25.4K bytes
    - Viewed (1)
  7. tensorflow/c/c_api_function.cc

            // artificial restriction and require that when num_opers=-1, such
            // nodes must have a single output.
            if (node->num_outputs() != 1) {
              return InvalidArgument(
                  "When `num_opers` is set to -1, nodes referenced in `inputs` "
                  "must have a single output. Node ",
                  node->name(), " has ", node->num_outputs(),
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 13.6K bytes
    - Viewed (2)
  8. tensorflow/c/experimental/next_pluggable_device/tensor_pjrt_buffer_util_test.cc

      EXPECT_THAT(
          GetPjRtCBufferFromTensor(&tensor),
          StatusIs(error::INTERNAL, HasSubstr(absl::StrCat(
                                        "Input tensor does not have PjRtBuffer"))));
    }
    
    TEST(TensorPjRtBufferUtilTest, GetPjRtCBufferFromTensorIncoorectType) {
      auto allocator = std::make_unique<AsyncValueAllocator>();
      tensorflow::Tensor tensor(allocator.get(), DT_FLOAT, {1});
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Mon Oct 30 19:20:20 GMT 2023
    - 7.2K bytes
    - Viewed (0)
  9. tensorflow/c/eager/parallel_device/parallel_device_testlib.cc

        variable->Assign(context, initial_value.get(), status.get());
        ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get());
      }
    
      // Read from the variable and verify that we have a parallel tensor.
      {
        TensorHandlePtr read = variable->Read(context, status.get());
        ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get());
        std::array<TensorHandlePtr, 2> components;
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Jun 15 15:44:44 GMT 2021
    - 12.5K bytes
    - Viewed (0)
  10. tensorflow/c/eager/c_api_distributed_test.cc

      TFE_TensorHandle* h1 = TestVariable(ctx, 2.0, task2_name);
      TFE_TensorHandle* h2 = TestVariable(ctx, 3.0, task0_name);
    
      // Add a sync point to make sure that variables have been initialized
      // before the function execution starts.
      TFE_ContextAsyncWait(ctx, status);
      EXPECT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
    
      // Pack 3 variable handles into one TFE_TensorHandle.
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 23.5K bytes
    - Viewed (0)
Back to top