Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for Reset (0.13 sec)

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

          status_ =
              BuildImmediateExecutionContext(std::get<1>(GetParam()), &ctx_raw);
          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
    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)
  2. tensorflow/c/eager/immediate_execution_distributed_manager.h

    class WorkerCacheInterface;
    
    class ImmediateExecutionDistributedManager {
     public:
      virtual ~ImmediateExecutionDistributedManager() {}
    
      // Set up distributed execution environment on local and remote tasks.
      // When `reset_context` is true, initialize new cluster context state based
      // on cluster configurations provided in `server_def`; otherwise, update
      // existing context state with the provided `server_def`. Contexts created
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Feb 21 22:37:46 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/gradients/array_grad_test.cc

        ASSERT_EQ(errors::OK, status_.code()) << status_.message();
        x1.reset(x1_raw);
      }
    
      AbstractTensorHandlePtr x2;
      {
        AbstractTensorHandle* x2_raw = nullptr;
        status_ = TestScalarTensorHandle<float, TF_FLOAT>(
            immediate_execution_ctx_.get(), 1.0f, &x2_raw);
        ASSERT_EQ(errors::OK, status_.code()) << status_.message();
        x2.reset(x2_raw);
      }
    
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 5K bytes
    - Viewed (0)
  4. tensorflow/c/eager/unified_api_test.cc

        ASSERT_EQ(errors::OK, s.code()) << s.message();
        ctx.reset(ctx_raw);
      }
    
      AbstractTensorHandlePtr x;
      {
        AbstractTensorHandle* x_raw = nullptr;
        Status s = TestScalarTensorHandle<float, TF_FLOAT>(ctx.get(), 2.0f, &x_raw);
        ASSERT_EQ(errors::OK, s.code()) << s.message();
        x.reset(x_raw);
      }
    
      Status s = RunModel(TestScalarShape, ctx.get(),
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Feb 27 13:57:45 GMT 2024
    - 6.7K bytes
    - Viewed (0)
  5. tensorflow/c/eager/gradients.cc

    // These APIs are mainly to facilitate testing and are subject to change.
    namespace internal {
    Status Reset(AbstractOperation* op_, const char* op,
                 const char* raw_device_name, ForwardOperation* forward_op_) {
      forward_op_->op_name = op;
      forward_op_->attrs.Reset(op);
      return op_->Reset(op, raw_device_name);
    }
    Status AddInput(AbstractOperation* op_, AbstractTensorHandle* input,
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  6. tensorflow/c/eager/c_api_unified_experimental_graph.cc

     public:
      explicit GraphOperation(TF_Graph* g) : TracingOperation(kGraph), g_(g) {}
      void Release() override { delete this; }
      Status Reset(const char* op, const char* raw_device_name) override {
        if (op_) {
          return errors::FailedPrecondition("Reset called on already built op.");
        }
        if (raw_device_name) {
          device_name_ = raw_device_name;
        }
        op_type_ = op;
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Mar 12 20:00:09 GMT 2024
    - 15.4K bytes
    - Viewed (1)
  7. tensorflow/c/eager/unified_api_testutil.cc

                                 ->Finalize(&output_list, &func));
          scoped_func.reset(func);
          for (auto output : output_list.outputs) {
            output->Unref();
          }
          TF_RETURN_IF_ERROR(ctx->RegisterFunction(func));
        }
    
        AbstractOperationPtr fn_op(ctx->CreateOperation());
        TF_RETURN_IF_ERROR(fn_op->Reset(fn_name, /*raw_device_name=*/nullptr));
        for (auto input : inputs) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Feb 27 13:57:45 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/gradients/custom_gradient_test.cc

        ASSERT_EQ(errors::OK, s.code()) << s.message();
        ctx.reset(ctx_raw);
      }
    
      AbstractTensorHandlePtr x;
      {
        AbstractTensorHandle* x_raw = nullptr;
        Status s = TestScalarTensorHandle<float, TF_FLOAT>(ctx.get(), 1.0f, &x_raw);
        ASSERT_EQ(errors::OK, s.code()) << s.message();
        x.reset(x_raw);
      }
    
      // Pseudo-code:
      //
      // tape.watch(x)
      // y = exp(x)
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  9. ci/official/utilities/setup_macos.sh

    if [[ "${TFCI_MACOS_UPGRADE_PYENV_ENABLE}" == 1 ]]; then
      # The TFCI Mac VM image seems to have uncommitted local changes to the Pyenv
      # repository so we have to discard them and reset the working directory before
      # we can pull in the latest changes.
      cd /Users/kbuilder/.pyenv/ && git reset --hard HEAD && git pull && cd -
    fi
    
    # "TFCI_MACOS_PYENV_INSTALL_ENABLE" controls whether to use Pyenv to install
    Shell Script
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 15:23:28 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  10. tensorflow/c/eager/gradients_test.cc

        ASSERT_EQ(errors::OK, s.code()) << s.message();
        ctx.reset(ctx_raw);
      }
    
      AbstractTensorHandlePtr t;
      {
        AbstractTensorHandle* x_raw = nullptr;
        Status s = TestScalarTensorHandle<float, TF_FLOAT>(ctx.get(), 1.0f, &x_raw);
        ASSERT_EQ(errors::OK, s.code()) << s.message();
        t.reset(x_raw);
      }
    
      AbstractOperationPtr check_numerics_op(ctx->CreateOperation());
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 7K bytes
    - Viewed (0)
Back to top