Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for None (0.2 sec)

  1. tensorflow/c/eager/parallel_device/parallel_device_remote_test.cc

      TensorHandlePtr value_one(FloatTensorHandle(3., status.get()));
      ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get());
      TensorHandlePtr value_two(FloatTensorHandle(-2., status.get()));
      ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get());
      std::array<TFE_TensorHandle*, 2> in_components{value_one.get(),
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Apr 27 22:09:57 GMT 2023
    - 6.7K bytes
    - Viewed (0)
  2. tensorflow/c/c_api.cc

          "important to you");
      return EmptyWhileParams();
    #else
      if (ninputs == 0) {
        status->status =
            InvalidArgument("TF_NewWhile() must be passed at least one input");
        return EmptyWhileParams();
      }
    
      TF_Graph* cond_graph = TF_NewGraph();
      TF_Graph* body_graph = TF_NewGraph();
      cond_graph->parent = g;
      cond_graph->parent_inputs = inputs;
    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)
  3. tensorflow/c/c_api_experimental.cc

      auto collective_executor_handle = context->GetCollectiveExecutorHandle();
      tensorflow::Notification done;
      collective_executor_handle->get()->remote_access()->CheckPeerHealth(
          task, timeout_in_ms, [&done, status](const Status& s) {
            status->status = s;
            done.Notify();
          });
      done.WaitForNotification();
    }
    
    TF_ShapeAndTypeList* TF_NewShapeAndTypeList(int num_items) {
    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)
  4. tensorflow/c/experimental/gradients/math_grad_test.cc

    }
    
    TEST_P(CppGradients, TestMatMulGrad) {
      // TODO(vnvo2409): Figure out why `gradient_checker` does not work very
      // well with `MatMul` and remove `TestMatMul*` in
      // `mnist_gradients_test` when done.
      GTEST_SKIP();
    
      float A_vals[] = {1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f, 9.0f};
      int64_t A_dims[] = {3, 3};
      AbstractTensorHandlePtr A;
      {
        AbstractTensorHandle* A_raw;
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Thu Apr 13 17:32:14 GMT 2023
    - 16.3K bytes
    - Viewed (0)
  5. tensorflow/c/env_test.cc

        const char* childpath;
        ASSERT_TRUE(TF_StringStreamNext(children, &childpath));
        ASSERT_EQ(::tensorflow::string(childpath), "somefile.txt");
        // There should only be one file in this directory.
        ASSERT_FALSE(TF_StringStreamNext(children, &childpath));
        ASSERT_EQ(childpath, nullptr);
        TF_StringStreamDone(children);
    
        TF_FileStatistics stats;
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Dec 10 20:52:48 GMT 2018
    - 4.2K bytes
    - Viewed (0)
  6. tensorflow/c/eager/custom_device_test.cc

      std::unique_ptr<TFE_TensorHandle, decltype(&TFE_DeleteTensorHandle)> one(
          TestScalarTensorHandle(context.get(), 111.f), TFE_DeleteTensorHandle);
      op.reset(TFE_NewOp(context.get(), "AssignVariableOp", status.get()));
      TFE_OpSetAttrType(op.get(), "dtype", TF_FLOAT);
      TFE_OpAddInput(op.get(), var_handle, status.get());
      TFE_OpAddInput(op.get(), one.get(), status.get());
      TFE_OpSetDevice(op.get(), name, status.get());
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 27 23:39:24 GMT 2020
    - 18.4K bytes
    - Viewed (0)
  7. tensorflow/c/c_test_util.cc

      values[0] = v;
      return TF_NewTensor(TF_FLOAT, nullptr, 0, values, num_bytes,
                          &FloatDeallocator, nullptr);
    }
    
    // All the *Helper methods are used as a workaround for the restrictions that
    // one cannot call ASSERT_* methods in non-void-returning functions (when
    // exceptions are disabled during compilation)
    void PlaceholderHelper(TF_Graph* graph, TF_Status* s, const char* name,
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Oct 15 03:16:52 GMT 2021
    - 17.8K bytes
    - Viewed (2)
  8. tensorflow/c/eager/parallel_device/parallel_device_test.cc

      ASSERT_EQ(TF_GetCode(status.get()), TF_OK) << TF_Message(status.get());
    
      TensorHandlePtr negative_one_cpu(FloatTensorHandle(3., status.get()));
      ASSERT_EQ(TF_GetCode(status.get()), TF_OK) << TF_Message(status.get());
      components[0] = negative_one_cpu.get();
      components[1] = negative_one_cpu.get();
      TensorHandlePtr first_negative_one = CreatePerDeviceValues(
          context.get(), components, first_device_name, status.get());
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 08 23:47:35 GMT 2021
    - 29.3K bytes
    - Viewed (1)
  9. tensorflow/c/eager/parallel_device/parallel_device_testlib.cc

      }
    
      // Add a parallel tensor with different values on each device to the variable.
      {
        TensorHandlePtr value_one(FloatTensorHandle(3., status.get()));
        TensorHandlePtr value_two(FloatTensorHandle(-2., status.get()));
        std::array<TFE_TensorHandle*, 2> components{value_one.get(),
                                                    value_two.get()};
        TensorHandlePtr combined_value =
    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/parallel_device/parallel_device_lib.cc

      //   Outputs:
      std::vector<TensorHandlePtr> op_outputs_ TF_GUARDED_BY(execution_mutex_);
      // TF_Status is an incomplete type and so can't be stack allocated. To avoid
      // unnecessary allocations each Execute call, we keep one heap-allocated
      // version for the thread.
      StatusPtr status_ TF_GUARDED_BY(execution_mutex_);
    
      const std::string device_;
      ExecutorPtr executor_ TF_GUARDED_BY(execution_mutex_);
    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)
Back to top