Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for DataType (0.07 sec)

  1. tensorflow/c/eager/c_api_test_util.h

    // Return a tensor handle with given type, values and dimensions.
    template <class T, TF_DataType datatype>
    TFE_TensorHandle* TestTensorHandleWithDims(TFE_Context* ctx, const T* data,
                                               const int64_t* dims, int num_dims) {
      TF_Status* status = TF_NewStatus();
      TF_Tensor* t = TFE_AllocateHostTensor(ctx, datatype, dims, num_dims, status);
      memcpy(TF_TensorData(t), data, TF_TensorByteSize(t));
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Mon Jul 17 23:43:59 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  2. tensorflow/c/eager/abstract_op_attrs.h

      virtual bool GetBool(absl::string_view attr_name, bool* result) const = 0;
      virtual bool GetType(absl::string_view attr_name, DataType* result) const = 0;
      virtual absl::Status GetTypeList(
          absl::string_view attr_name,
          absl::InlinedVector<DataType, 4>* type_list) const = 0;
    
     private:
      const AbstractOpAttrsKind kind_;
    };
    
    }  // namespace tensorflow
    
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 2K bytes
    - Viewed (0)
  3. tensorflow/c/eager/abstract_tensor_handle.h

      explicit AbstractTensorHandle(AbstractTensorHandleKind kind) : kind_(kind) {}
      ~AbstractTensorHandle() override {}
    
     public:
      // Returns tensor dtype.
      virtual tensorflow::DataType DataType() const = 0;
    
      // Returns the status of the tensor handle. If it is a tfrt::TensorHandle,
      // the tensor handle can be an error and return non-OK status.
      virtual absl::Status TensorHandleStatus() const;
    
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 3K bytes
    - Viewed (0)
  4. tensorflow/c/eager/gradients_internal.h

    absl::Status SetAttrBool(AbstractOperation*, const char* attr_name, bool value,
                             ForwardOperation*);
    absl::Status SetAttrType(AbstractOperation*, const char* attr_name,
                             DataType value, ForwardOperation*);
    absl::Status SetAttrShape(AbstractOperation*, const char* attr_name,
                              const int64_t* dims, const int num_dims,
                              ForwardOperation*);
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  5. tensorflow/c/c_api_macros.h

    #else
    #define TF_CAPI_EXPORT __attribute__((visibility("default")))
    #endif  // TF_CAPI_WEAK
    #endif  // _WIN32
    #endif  // SWIG
    
    // TF_Bool is the C API typedef for unsigned char, while TF_BOOL is
    // the datatype for boolean tensors.
    #ifndef TF_Bool
    #define TF_Bool unsigned char
    #endif  // TF_Bool
    
    // Macro used to calculate struct size for maintaining ABI stability across
    // different struct implementations.
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat May 13 04:44:45 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  6. tensorflow/c/eager/c_api_unified_experimental.cc

    //
    // =============================================================================
    
    using tensorflow::AbstractFunction;
    using tensorflow::AbstractTensorHandle;
    using tensorflow::DataType;
    using tensorflow::dyn_cast;
    using tensorflow::OutputList;
    using tensorflow::Status;
    using tensorflow::unwrap;
    using tensorflow::wrap;
    using tensorflow::tracing::CreateTracingExecutionContext;
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 9K bytes
    - Viewed (0)
  7. tensorflow/c/checkpoint_reader.cc

        TF_Status* out_status) const {
      absl::Status status;
      if (reader_ != nullptr) {
        status = reader_->GetTensor(name, out_tensor);
      } else {
        tensorflow::DataType dtype;
        tensorflow::TensorShape shape;
        status = v2_reader_->LookupDtypeAndShape(name, &dtype, &shape);
        if (status.ok()) {
          out_tensor->reset(new Tensor(dtype, shape));
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 16:27:48 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  8. tensorflow/c/eager/abstract_operation.h

      virtual absl::Status SetAttrFloat(const char* attr_name, float value) = 0;
      virtual absl::Status SetAttrBool(const char* attr_name, bool value) = 0;
      virtual absl::Status SetAttrType(const char* attr_name, DataType value) = 0;
      virtual absl::Status SetAttrShape(const char* attr_name, const int64_t* dims,
                                        const int num_dims) = 0;
      virtual absl::Status SetAttrShape(const char* attr_name,
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  9. src/main/webapp/js/search.js

            actionUrl,
            docId;
        if (values.length === 2 && $queryId.length > 0) {
          docId = values[1];
          actionUrl = contextPath + "/api/v1/documents/" + docId + "/favorite";
          $.ajax({
            dataType: "json",
            cache: false,
            type: "post",
            timeoutNumber: 10000,
            url: actionUrl,
            data: {
              queryId: $queryId.val()
            }
          })
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Mar 30 05:45:24 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  10. tensorflow/c/eager/abstract_tensor_handle.cc

        shape_string = "<error computing shape>";
      } else {
        shape_string = shape.DebugString();
      }
      return absl::StrCat("TensorHandle(shape=", shape_string,
                          ", dtype=", DataType_Name(DataType()),
                          ", type=", FullType().DebugString(), ")");
    }
    
    absl::Status AbstractTensorHandle::TensorHandleStatus() const {
      // Tensor handles in current runtime don't carry error info and this method
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 1.4K bytes
    - Viewed (0)
Back to top