Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for forwardly (0.19 sec)

  1. tensorflow/c/experimental/gradients/nn_grad.cc

    namespace gradients {
    namespace {
    
    class ReluGradientFunction : public GradientFunction {
     public:
      explicit ReluGradientFunction(vector<AbstractTensorHandle*> f_outputs)
          : forward_outputs_(f_outputs) {
        for (auto output : forward_outputs_) {
          if (output) {
            output->Ref();
          }
        }
      }
    
      Status Compute(AbstractContext* ctx,
                     absl::Span<AbstractTensorHandle* const> grad_outputs,
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/gradients/grad_test_helper.cc

          ASSERT_NEAR(manuals[j], danalytical[j], abs_error);
        }
      }
    
      TF_DeleteTensor(analytical_tensor);
      delete[] danalytical;
    }
    
    Model BuildGradModel(Model forward, GradientRegistry registry) {
      return [forward_model = std::move(forward),
              grad_registry = std::move(registry)](
                 AbstractContext* ctx,
                 absl::Span<AbstractTensorHandle* const> inputs,
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 5K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/gradients/math_grad_test.cc

          ASSERT_EQ(errors::OK, status_.code()) << status_.message();
          immediate_execution_ctx_.reset(ctx_raw);
        }
    
        // Computing numerical gradients with TensorFloat-32 is numerically
        // unstable. Some forward pass tests also fail with TensorFloat-32 due to
        // low tolerances
        enable_tensor_float_32_execution(false);
      }
    
      AbstractContextPtr immediate_execution_ctx_;
      GradientRegistry registry_;
    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)
  4. tensorflow/c/eager/gradients_test.cc

        t.reset(x_raw);
      }
    
      AbstractOperationPtr check_numerics_op(ctx->CreateOperation());
      ForwardOperation forward_op;
      Status s = Reset(check_numerics_op.get(), "CheckNumerics",
                       /*raw_device_name=*/nullptr, &forward_op);
      ASSERT_EQ(errors::OK, s.code()) << s.message();
      if (isa<TracingOperation>(check_numerics_op.get())) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 7K bytes
    - Viewed (0)
  5. tensorflow/c/eager/gradient_checker.cc

    Status RunAndMaybeSum(AbstractContext* ctx, Model forward,
                          absl::Span<AbstractTensorHandle* const> inputs,
                          absl::Span<AbstractTensorHandle*> outputs,
                          bool use_function) {
      AbstractTensorHandle* model_outputs[1];
    
      // Run the model.
      TF_RETURN_IF_ERROR(
          RunModel(forward, ctx, inputs, model_outputs, use_function));
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 7.3K bytes
    - Viewed (0)
  6. tensorflow/c/eager/parallel_device/parallel_device_lib.cc

                        CancellationManager& cancellation_manager,
                        absl::optional<int64_t> step_id = absl::nullopt);
      // Block until the previous `StartExecute` operation has executed. Forwards
      // the status from `TFE_Execute` and returns outputs if the status is OK.
      std::vector<TensorHandlePtr> Join(TF_Status* status);
    
      // Block until all Ops finished running on the thread.
    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/experimental/gradients/tape/tape_operation.cc

      // TODO(b/172003047): Consider making AbstractOperation RefCounted.
      // parent_op->Unref();
    }
    Status TapeOperation::Reset(const char* op, const char* raw_device_name) {
      forward_op_.op_name = op;
      forward_op_.attrs.Reset(op);
      forward_op_.inputs.clear();
      forward_op_.outputs.clear();
      return parent_op_->Reset(op, raw_device_name);
    }
    const string& TapeOperation::Name() const { return parent_op_->Name(); }
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Tue Jun 07 01:53:35 GMT 2022
    - 9K bytes
    - Viewed (1)
  8. tensorflow/c/eager/c_api_test.cc

      EXPECT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      if (!forward_input) {
        TFE_DeleteTensorHandle(n);
      }
      TFE_DeleteOp(add_op);
    
      TF_Tensor* t = TFE_TensorHandleResolve(retval, status);
      if (async) {
        if (forward_input) {
          // Since the input was forwarded, we released the input handle right away
          // and hence expect the input to be forwarded to the return tensor.
          EXPECT_EQ(orig_ptr, TF_TensorData(t));
    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)
  9. tensorflow/c/experimental/gradients/nn_grad_test.cc

          ASSERT_EQ(errors::OK, status_.code()) << status_.message();
          immediate_execution_ctx_.reset(ctx_raw);
        }
    
        // Computing numerical gradients with TensorFloat-32 is numerically
        // unstable. Some forward pass tests also fail with TensorFloat-32 due to
        // low tolerances
        enable_tensor_float_32_execution(false);
      }
    
      AbstractContextPtr immediate_execution_ctx_;
      GradientRegistry registry_;
      Status status_;
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  10. tensorflow/c/c_api_test.cc

        //   |      dz|          |
        //   |        |          |
        //   |     Const_3       |
        //   |                   |
        //   |        ^          |
        //   |       z|          |     // MatMul Forward Graph
        //   |        |          |
        //   |      MatMul       |
        //   |     /       \     |
        //   |    ^         ^    |
        //   |    |         |    |
        //   |---x|        y|----|
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 96.9K bytes
    - Viewed (3)
Back to top