Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 35 for computed (0.18 sec)

  1. tensorflow/c/experimental/filesystem/plugins/gcs/expiring_lru_cache_test.cc

      EXPECT_EQ(num_compute_calls, 5);
      cache2.LookupOrCompute("c", &value, compute_func, &status);
      TF_EXPECT_OK(status.status);
      EXPECT_EQ(value, 2);
      EXPECT_EQ(num_compute_calls, 5);
      cache2.LookupOrCompute("d", &value, compute_func, &status);
      TF_EXPECT_OK(status.status);
      EXPECT_EQ(value, 3);
      EXPECT_EQ(num_compute_calls, 5);
    
      // Re-read "a", ensure it is re-computed.
      cache2.LookupOrCompute("a", &value, compute_func, &status);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 09 19:31:22 GMT 2020
    - 7.1K bytes
    - Viewed (0)
  2. tensorflow/c/c_api_internal.h

    std::string getTF_OutputDebugString(TF_Output node);
    
    // Set whether to propagate assigned device information when constructing a new
    // Graph from a GraphDef. By default assigned device information is not copied
    // and is re-computed by the runtime.
    inline void TF_ImportGraphDefOptionsSetPropagateDeviceSpec(
        TF_ImportGraphDefOptions* opts, unsigned char propagate_device_spec) {
      opts->opts.propagate_device_spec = propagate_device_spec;
    }
    
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Sat May 13 00:49:12 GMT 2023
    - 7.6K bytes
    - Viewed (0)
  3. tensorflow/c/eager/tape.h

    // is used as an input to an op (so we know when we're done computing gradients
    // for that Tensor). We also count, for each tape entry, how many of its output
    // Tensors need gradients to be computed (Tensors which are not used do not need
    // any gradients to be computed).
    //
    // Finally, we start a backprop stack with a set of tape entries for which we
    // have all gradients available. This set usually is a subset of the set of
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Apr 02 12:40:29 GMT 2024
    - 47.2K bytes
    - Viewed (1)
  4. tensorflow/c/eager/c_api.h

    // will block till the operation that produces `h` has completed.
    TF_CAPI_EXPORT extern const char* TFE_TensorHandleDeviceName(
        TFE_TensorHandle* h, TF_Status* status);
    
    // Returns the name of the device in whose memory `h` resides.
    //
    // This function will block till the operation that produces `h` has completed.
    TF_CAPI_EXPORT extern const char* TFE_TensorHandleBackingDeviceName(
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Apr 27 21:07:00 GMT 2023
    - 22.8K bytes
    - Viewed (1)
  5. tensorflow/c/eager/parallel_device/parallel_device_lib.cc

                     TF_Message(first_bad_status.get()));
        return result;
      }
      // For each output of the original operation, pack the per-device
      // TensorHandles we've computed into a single parallel TensorHandle.
      std::vector<std::unique_ptr<ParallelTensor>> per_device_outputs;
      per_device_outputs.reserve(first_op_output_count);
      for (int i = 0; i < first_op_output_count; ++i) {
    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)
  6. tensorflow/c/c_test.c

      TF_Status* s = TF_NewStatus();
      TF_OpKernelConstruction_GetAttrType(ctx, "foobar", &type, s);
      TF_DeleteStatus(s);
      return NULL;
    }
    
    // A compute function. This will never actually get called in this test, it's
    // just nice to know that it compiles.
    void compute(void* kernel, TF_OpKernelContext* ctx) {
      TF_Tensor* input;
      TF_Status* s = TF_NewStatus();
      TF_GetInput(ctx, 0, &input, s);
      TF_DeleteTensor(input);
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Apr 24 20:50:35 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  7. tensorflow/c/experimental/gradients/nn_grad.cc

          : forward_outputs_(f_outputs) {
        for (auto output : forward_outputs_) {
          if (output) {
            output->Ref();
          }
        }
      }
    
      Status Compute(AbstractContext* ctx,
                     absl::Span<AbstractTensorHandle* const> grad_outputs,
                     absl::Span<AbstractTensorHandle*> grad_inputs) override {
        AbstractTensorHandle* upstream_grad = grad_outputs[0];
    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)
  8. ci/official/containers/linux_arm64/builder.devtoolset/gcc9-fixups.patch

     
    -     The choice of symbol is arbitrary. The static address we obtain
    -     by constructing a non GOT reference to the symbol, the dynamic
    -     address of the symbol we compute using adrp/add to compute the
    -     symbol's address relative to the PC. */
    -
    -  ElfW(Addr) static_addr;
    -  ElfW(Addr) dynamic_addr;
    -
    -  asm ("					\n\
    -	adrp	%1, _dl_start;			\n\
    Others
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Sep 18 14:52:45 GMT 2023
    - 8.9K bytes
    - Viewed (0)
  9. tensorflow/c/c_api_test.cc

      TF_DeleteBuffer(op_list_buf);
    }
    
    class DummyKernel : public tensorflow::OpKernel {
     public:
      explicit DummyKernel(tensorflow::OpKernelConstruction* context)
          : OpKernel(context) {}
      void Compute(tensorflow::OpKernelContext* context) override {}
    };
    
    // Test we can query kernels
    REGISTER_OP("TestOpWithSingleKernel")
        .Input("a: float")
        .Input("b: float")
        .Output("o: float");
    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)
  10. tensorflow/c/eager/c_api_test.cc

    class TestUnavailableErrorOp : public tensorflow::OpKernel {
     public:
      explicit TestUnavailableErrorOp(tensorflow::OpKernelConstruction* ctx)
          : tensorflow::OpKernel(ctx) {}
      void Compute(tensorflow::OpKernelContext* ctx) override {
        ctx->SetStatus(tensorflow::errors::Unavailable("Test error."));
      }
    };
    REGISTER_KERNEL_BUILDER(
        Name("TestNonCommUnavailable").Device(tensorflow::DEVICE_DEFAULT),
    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)
Back to top