Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 236 for tensor_a (0.19 sec)

  1. tensorflow/compiler/jit/deadness_analysis_test.cc

    TEST(DeadnessAnalysisTest, Recv) {
      Scope root = Scope::NewRootScope().ExitOnError();
    
      Output recv_a = ops::_Recv(root.WithOpName("recv_a"), DT_FLOAT, "tensor_a",
                                 "sender", 0, "receiver");
      Output recv_b = ops::_Recv(root.WithOpName("recv_b"), DT_FLOAT, "tensor_b",
                                 "sender", 0, "receiver");
      Output add = ops::Add(root.WithOpName("add"), recv_a, recv_b);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 06:59:07 UTC 2024
    - 51.6K bytes
    - Viewed (0)
  2. tensorflow/cc/experimental/base/public/tensor.h

      explicit Tensor(TF_Tensor* tensor) : tensor_(tensor) {}
    
      // Tensor is not copyable
      Tensor(const Tensor&) = delete;
      Tensor& operator=(const Tensor&) = delete;
    
      // Returns the underlying TF_Tensor that this object wraps.
      // This object retains ownership of the pointer.
      TF_Tensor* GetTFTensor() const { return tensor_.get(); }
    
      struct DeleterStruct {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 28 20:10:33 UTC 2020
    - 6.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/mark_for_compilation_pass_test.cc

    TEST(XlaCompilationTest, ClusterControlTrigger) {
      Scope root = Scope::NewRootScope().ExitOnError();
    
      Output recv_a = ops::_Recv(root.WithOpName("recv_a"), DT_BOOL, "tensor_a",
                                 "sender", 0, "receiver");
      Output recv_b = ops::_Recv(root.WithOpName("recv_b"), DT_BOOL, "tensor_b",
                                 "sender", 0, "receiver");
      Output const_a = ops::Const(root.WithOpName("const_a"), 42);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 14 10:11:10 UTC 2024
    - 79.6K bytes
    - Viewed (0)
  4. tensorflow/c/eager/tape.h

        Gradient* grad_tensor = grad[grad_index];
        if (grad_tensor != nullptr) {
          int64_t tensor_id = vspace_.TensorId(grad_tensor);
          targets.push_back(tensor_id);
          if (sources_set.find(tensor_id) != sources_set.end()) {
            sources_that_are_targets.emplace(
                tensor_id, vspace_.TapeTensorFromGradient(grad_tensor));
          }
          Gradient* in_grad = in_grads[grad_index];
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 02 12:40:29 UTC 2024
    - 47.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/deadness_analysis.cc

      // "tensor_id() is live and evaluates to true".
      //
      // If `must_be_true()` is false then this SymbolPredicate represents the
      // proposition "tensor_id() is live (and may evaluate to any value)"
      TensorId tensor_id() const { return tensor_id_; }
      bool must_be_true() const { return must_be_true_; }
    
     private:
      TensorId tensor_id_;
      bool must_be_true_;
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 60.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/experimental/remat/rematerializer.cc

        for (const int itensor : operations_[ioperation].tensors) {
          if (const auto& tensor = tensors_[itensor];
              tensor.first_use() >= begin && tensor.first_use() < end &&
              tensor.last_use() > peak_loc) {
            for (const int ioperation : tensor.operations) {
              // We return the earliest dependence on any output tensor.
              if (ioperation > peak_loc && ioperation < best) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 14 20:57:44 UTC 2023
    - 13.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/ir/tf_op_base.td

    // Tensor types
    def TF_BoolTensor : TensorOf<[TF_Bool]>;
    
    def TF_IntTensor : TensorOf<[TF_Int]>;
    def TF_Int4Tensor : TensorOf<[TF_Int4]>;
    def TF_Int8Tensor : TensorOf<[TF_Int8]>;
    def TF_Int16Tensor : TensorOf<[TF_Int16]>;
    def TF_Int32Tensor : TensorOf<[TF_Int32]>;
    def TF_Int64Tensor : TensorOf<[TF_Int64]>;
    def TF_I32OrI64Tensor : TensorOf<[TF_I32OrI64]>;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 30.5K bytes
    - Viewed (0)
  8. tensorflow/c/eager/parallel_device/parallel_device_lib.h

        std::vector<TFE_TensorHandle*> result;
        result.reserve(tensors_.size());
        for (const TensorHandlePtr& tensor : tensors_) {
          result.emplace_back(tensor.get());
        }
        return result;
      }
    
     private:
      ParallelTensor(const ParallelDevice& device,
                     std::vector<TensorHandlePtr> tensors,
                     absl::Span<const int64_t> shape, const TF_DataType dtype)
          : device_(device),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 25 15:21:13 UTC 2023
    - 12.9K bytes
    - Viewed (0)
  9. tensorflow/c/kernels/summary_op.cc

      CHECK(SerializeToTString(s, output_tstring));
      TF_DeleteTensor(summary_tensor);
    }
    
    bool IsSameSize(TF_Tensor* tensor1, TF_Tensor* tensor2) {
      if (TF_NumDims(tensor1) != TF_NumDims(tensor2)) {
        return false;
      }
      for (int d = 0; d < TF_NumDims(tensor1); d++) {
        if (TF_Dim(tensor1, d) != TF_Dim(tensor2, d)) {
          return false;
        }
      }
      return true;
    }
    
    std::string SingleTag(TF_Tensor* tags) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/deadness_analysis_internal.h

    #include "absl/container/flat_hash_map.h"
    #include "tensorflow/core/graph/tensor_id.h"
    
    namespace tensorflow {
    namespace deadness_analysis_internal {
    
    // Returns a map describing the predicate each Tensor was mapped to.  For
    // testing purposes only.
    using PredicateMapTy = absl::flat_hash_map<TensorId, string, TensorId::Hasher>;
    Status ComputePredicates(const Graph& graph, PredicateMapTy* out_predicate_map,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 22 00:04:21 UTC 2019
    - 1.4K bytes
    - Viewed (0)
Back to top