Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for OutputList (0.23 sec)

  1. tensorflow/c/eager/c_api_unified_experimental_internal.h

    #include "tensorflow/core/platform/casts.h"
    #include "tensorflow/core/platform/types.h"
    
    namespace tensorflow {
    
    // Represents the results of the execution of an operation.
    struct OutputList {
      std::vector<AbstractTensorHandle*> outputs;
      int expected_num_outputs = -1;
    };
    
    namespace tracing {
    
    // =============================================================================
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Nov 13 22:20:40 UTC 2020
    - 5.2K bytes
    - Viewed (0)
  2. tensorflow/cc/framework/gradient_checker.cc

        const Scope& scope, const OutputList& xs,
        const std::vector<TensorShape>& x_shapes,
        const std::vector<Tensor>& x_datas, const OutputList& ys,
        const std::vector<TensorShape>& y_shapes,
        std::vector<Tensor>* jacobian_ts) {
      size_t y_num = y_shapes.size();
      size_t x_num = x_shapes.size();
      // Call AddSymbolicGradients to get 'dxs' (we will feed 'dys').
      OutputList dys;
      dys.reserve(y_shapes.size());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 05:57:22 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  3. tensorflow/cc/gradients/data_flow_grad_test.cc

    using ops::Placeholder;
    
    class DataFlowGradTest : public ::testing::Test {
     protected:
      DataFlowGradTest() : scope_(Scope::NewRootScope()) {}
    
      void RunTest(const OutputList& xs, const std::vector<TensorShape>& x_shapes,
                   const OutputList& ys, const std::vector<TensorShape>& y_shapes) {
        TF_ASSERT_OK(scope_.status());
        float max_error;
        TF_ASSERT_OK((ComputeGradientError<float, float, float>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 02 18:49:13 UTC 2018
    - 2.6K bytes
    - Viewed (0)
  4. tensorflow/cc/framework/gradient_checker.h

    /// <X_T, Y_T, JAC_T> should be <float, complex64, float>
    template <typename X_T, typename Y_T, typename JAC_T>
    Status ComputeGradientError(const Scope& scope, const OutputList& xs,
                                const std::vector<TensorShape>& x_shapes,
                                const OutputList& ys,
                                const std::vector<TensorShape>& y_shapes,
                                JAC_T* max_error);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 15:35:17 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  5. tensorflow/cc/framework/testutil.cc

    #include "tensorflow/core/framework/tensor_testutil.h"
    #include "tensorflow/core/graph/default_device.h"
    
    namespace tensorflow {
    namespace test {
    
    void GetTensors(const Scope& scope, OutputList tensors,
                    std::vector<Tensor>* out) {
      ClientSession session(scope);
      TF_CHECK_OK(session.Run(tensors, out));
    }
    
    void GetTensor(const Scope& scope, Output tensor, Tensor* out) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Sep 07 06:52:56 UTC 2017
    - 1.8K bytes
    - Viewed (0)
  6. tensorflow/cc/framework/testutil.h

    void GetTensors(const Scope& scope, OutputList tensors,
                    std::vector<Tensor>* out);
    
    // Computes the outputs listed in 'tensors', returns the tensors in 'out'.
    // assign_vars are extra outputs that should be run
    // e.g. to assign values to variables.
    void GetTensors(const Scope& scope, const std::vector<Output>& assign_vars,
                    const OutputList& tensors, std::vector<Tensor>* out);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 15:47:18 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  7. tensorflow/cc/gradients/functional_grad_test.cc

            scope_, {x}, {x_shape}, {y}, {y_shape}, &max_error));
        TF_CHECK_OK(result);
        TF_ASSERT_OK(result);
        EXPECT_LT(max_error, 1e-3);
      }
    
      void RunTest(const OutputList& xs, const std::vector<TensorShape>& x_shapes,
                   const OutputList& ys, const std::vector<TensorShape>& y_shapes) {
        TF_ASSERT_OK(scope_.status());
        float max_error;
        TF_ASSERT_OK((ComputeGradientError<float, float, float>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 26 14:42:24 UTC 2021
    - 3K bytes
    - Viewed (0)
  8. tensorflow/cc/gradients/linalg_grad_test.cc

        TF_ASSERT_OK((ComputeGradientError<float, float, float>(
            scope_, {x}, {x_shape}, {y}, {y_shape}, &max_error)));
        EXPECT_LT(max_error, 1e-3);
      }
    
      void RunTest(const OutputList& xs, const std::vector<TensorShape>& x_shapes,
                   const OutputList& ys, const std::vector<TensorShape>& y_shapes) {
        TF_ASSERT_OK(scope_.status());
        float max_error;
        TF_ASSERT_OK((ComputeGradientError<float, float, float>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 07 23:11:54 UTC 2022
    - 5.8K bytes
    - Viewed (0)
  9. tensorflow/cc/gradients/resource_variable_grad_test.cc

      auto temp = ReadVariableOp(scope, var, DT_FLOAT);
    
      auto y = Mul(scope, temp, x);
    
      auto dy = Placeholder(scope, DT_FLOAT, Placeholder::Shape(shape));
    
      OutputList dxs;
      TF_ASSERT_OK(AddSymbolicGradients(scope, {y}, {var}, {dy}, &dxs));
    
      ClientSession::FeedType feed_list;
      feed_list.insert({x, 5.0f});
      feed_list.insert({dy, 1.0f});
    
      std::vector<Tensor> dxout;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 14 15:30:48 UTC 2021
    - 2.2K bytes
    - Viewed (0)
  10. tensorflow/c/eager/c_api_unified_experimental.cc

    using tensorflow::AbstractFunction;
    using tensorflow::AbstractTensorHandle;
    using tensorflow::DataType;
    using tensorflow::dyn_cast;
    using tensorflow::OutputList;
    using tensorflow::Status;
    using tensorflow::unwrap;
    using tensorflow::wrap;
    using tensorflow::tracing::CreateTracingExecutionContext;
    using tensorflow::tracing::SetDefaultTracingEngine;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 10:15:17 UTC 2024
    - 9K bytes
    - Viewed (0)
Back to top