Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for related (0.2 sec)

  1. tensorflow/c/c_api_experimental.cc

      TF_Output output{dequeue_op, 0};
      TF_Tensor* ret;
      TF_SessionRun(session, /*run_options*/ nullptr,
                    // input related parameters
                    /*inputs*/ nullptr, /*input_values*/ nullptr, /*ninputs*/ 0,
                    // output related parameters
                    /*outputs*/ &output, /*output_values*/ &ret,
                    /*noutputs*/ 1,
                    /*targets*/ nullptr, /*ntargets*/ 0,
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 29.4K bytes
    - Viewed (0)
  2. tensorflow/c/c_api.cc

      while (*pos < static_cast<size_t>(graph->graph.num_node_ids())) {
        Node* node = graph->graph.FindNodeId(*pos);
        // FindNodeId() returns nullptr for nodes that have been deleted.
        // We aren't currently allowing nodes to be deleted, but it is safer
        // to still check.
        if (node != nullptr) return ToOperation(node);
        *pos += 1;
      }
    
      // No more nodes.
      return nullptr;
    }
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 102.3K bytes
    - Viewed (0)
  3. tensorflow/c/eager/dlpack.cc

    namespace {
    
    // Managing context for the DLManagedTensor, will manage the lifetime of
    // DLManagedTensor. When calling DLManagedTensor::deleter, it will notify the
    // original framework of destruction, and this context will be deleted also.
    struct TfDlManagedTensorCtx {
      TensorReference reference;
      std::vector<int64_t> shape;
      std::vector<int64_t> strides;
      DLManagedTensor tensor;
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 12.8K bytes
    - Viewed (0)
  4. tensorflow/c/eager/gradients.cc

      void MarkAsResult(AbstractTensorHandle* gradient) const override;
    
      void DeleteGradient(AbstractTensorHandle* gradient) const override;
    
     private:
      // The context where the aggregation op `Add` is to be created.
      AbstractContext* ctx_;
    };
    
    // Returns the number of elements in the gradient tensor.
    int64_t TapeVSpace::NumElements(AbstractTensorHandle* tensor) const {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  5. tensorflow/c/c_test_util.cc

      TF_Output add_inputs[2] = {{l, 0}, {r, 0}};
      TF_AddInputList(desc, add_inputs, 2);
      TF_AddControlInput(desc, ctrl_op);
      return TF_FinishOperation(desc, s);
    }
    
    // If `op_device` is non-empty, set the created op on that device.
    void BinaryOpHelper(const char* op_name, TF_Operation* l, TF_Operation* r,
                        TF_Graph* graph, TF_Status* s, const char* name,
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Oct 15 03:16:52 GMT 2021
    - 17.8K bytes
    - Viewed (2)
  6. tensorflow/c/eager/parallel_device/parallel_device_lib.cc

        // would otherwise deadlock).
        if (TF_GetCode(status) != TF_OK &&
            (first_bad_status == nullptr
             // Prefer propagating non-cancellation related statuses to avoid
             // shadowing the original failure.
             || TF_GetCode(first_bad_status.get()) == TF_CANCELLED)) {
          first_bad_status.reset(TF_NewStatus());
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Feb 09 07:47:20 GMT 2024
    - 25.4K bytes
    - Viewed (1)
  7. tensorflow/c/eager/parallel_device/parallel_device_testlib.cc

                          TF_Status* status) {
      GeneralAssignment("AssignVariableOp", context, value, status);
    }
    
    // Passed to `TF_NewTensor` to indicate how an array of floats should be
    // deleted.
    static void FloatDeallocator(void* data, size_t, void* arg) {
      delete[] static_cast<float*>(data);
    }
    
    // Creates a TFE_TensorHandle with value `v`.
    TensorHandlePtr FloatTensorHandle(float v, TF_Status* status) {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Jun 15 15:44:44 GMT 2021
    - 12.5K bytes
    - Viewed (0)
  8. tensorflow/c/eager/parallel_device/parallel_device.cc

      // The resulting TensorHandle owns an opaque pointer to "device memory", which
      // for a ParallelDevice is really a ParallelTensor. When the TensorHandle is
      // deleted, it will call ParallelTensorDeallocator to free the struct.
      ParallelTensor* t_released = t.release();
      TFE_CustomDeviceTensorHandleMethods handle_methods;
      handle_methods.num_dims = &ParallelTensorNumDims;
      handle_methods.dim = &ParallelTensorDim;
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Mar 29 22:05:31 GMT 2023
    - 18.3K bytes
    - Viewed (0)
  9. tensorflow/c/experimental/filesystem/modular_filesystem_registration.cc

    //     probe for gadgets inside core TensorFlow. We can even protect the area
    //     of memory where the copies reside to not allow any more writes to it
    //     after all copies are created.
    template <typename T>
    static std::unique_ptr<const T> CopyToCore(const T* plugin_ops,
                                               size_t plugin_size) {
      if (plugin_ops == nullptr) return nullptr;
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Mar 07 22:08:43 GMT 2023
    - 12.8K bytes
    - Viewed (0)
  10. tensorflow/c/c_api_function_test.cc

      Define(-1, {}, {feed}, {neg}, {"negated_num"});
    
      // Use, run, and verify
      TF_Operation* func_feed = Placeholder(host_graph_, s_);
      TF_Operation* func_op = Use({func_feed});
      Run({{func_feed, Int32Tensor(3)}}, func_op, -3);
      VerifyFDef({"neg"}, {{"feed", DT_INT32}}, {{"negated_num", DT_INT32}},
                 {{"feed", "neg:0"}, {"neg:y:0", "negated_num"}}, {});
    }
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Jul 20 22:08:54 GMT 2023
    - 63.6K bytes
    - Viewed (6)
Back to top