Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for FullType (0.16 sec)

  1. tensorflow/c/eager/abstract_tensor_handle.cc

      } else {
        shape_string = shape.DebugString();
      }
      return absl::StrCat("TensorHandle(shape=", shape_string,
                          ", dtype=", DataType_Name(DataType()),
                          ", type=", FullType().DebugString(), ")");
    }
    
    Status AbstractTensorHandle::TensorHandleStatus() const {
      // Tensor handles in current runtime don't carry error info and this method
      // should always return OK status.
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  2. tensorflow/c/eager/abstract_tensor_handle.h

      // can be used to set a FullTypeDef based on dtype in a derived class if
      // appropriate.
      virtual tensorflow::FullTypeDef FullType() const = 0;
    
      // The default debug string includes a shape, dtype and FullType.
      // Implementations are free to override it with something more informative.
      virtual std::string DebugString() const;
    
      AbstractTensorHandleKind getKind() const { return kind_; }
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Mar 03 00:30:36 GMT 2023
    - 3K bytes
    - Viewed (0)
  3. tensorflow/c/eager/c_api_unified_experimental_graph.cc

        TF_RETURN_IF_ERROR(StatusFromTF_Status(&status));
        TF_RETURN_IF_ERROR(tensorflow::TensorShapeUtils::MakeShape(dims, shape));
    
        return absl::OkStatus();
      }
    
      tensorflow::FullTypeDef FullType() const override {
        const FullTypeDef* ft;
        mutex_lock l(graph_->mu);
        graph_->graph.NodeType(output_.oper->node.name(), &ft);
        if (ft == nullptr) {
          return FullTypeDef();
        } else {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Mar 12 20:00:09 GMT 2024
    - 15.4K bytes
    - Viewed (1)
  4. tensorflow/c/eager/c_api_unified_experimental_test.cc

      // Test that full type information can be accessed.
      auto outs = unwrap(add_outputs);
      auto h = outs->outputs[0];
      ASSERT_NE(h, nullptr);
      ASSERT_EQ(h->FullType().type_id(), TFT_UNSET);
      ASSERT_EQ(unwrap(inputs[0])->FullType().type_id(), TFT_UNSET);
    
      // Clean up operation and inputs.
      TF_DeleteAbstractOp(add_op);
    
      TF_AbstractFunction* func =
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri May 19 21:44:52 GMT 2023
    - 39.1K bytes
    - Viewed (0)
  5. tensorflow/c/c_api.cc

      FullTypeDef full_type;
      full_type.ParseFromArray(full_type_proto->data, full_type_proto->length);
      *op->node.mutable_def()->mutable_experimental_type() = full_type;
      RecordMutation(graph, *op, "setting fulltype");
    }
    
    void TF_SetRequestedDevice(TF_Graph* graph, TF_Operation* op,
                               const char* device) {
      using tensorflow::RecordMutation;
      mutex_lock l(graph->mu);
    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)
Back to top