Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 233 for data_type_ (0.29 sec)

  1. 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(), ")");
    }
    
    Status AbstractTensorHandle::TensorHandleStatus() const {
      // Tensor handles in current runtime don't carry error info and this method
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 15 09:49:45 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  2. 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: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat May 13 04:44:45 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/ops/io_ops.h

                     AbstractTensorHandle* const tensor_names,
                     AbstractTensorHandle* const shape_and_slices,
                     absl::Span<AbstractTensorHandle*> tensors,
                     absl::Span<DataType> dtypes, const char* name = nullptr,
                     const char* raw_device_name = nullptr);
    
    // Saves tensors in V2 checkpoint format.
    Status SaveV2(AbstractContext* ctx, AbstractTensorHandle* const prefix,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 17 17:54:34 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/xla_host_recv_device_context.cc

    namespace tensorflow {
    
    void XlaHostRecvDeviceContext::CopyDeviceTensorToCPU(
        const Tensor* device_tensor, StringPiece tensor_name, Device* device,
        Tensor* cpu_tensor, StatusCallback done) {
      DataType dtype = EncodePrimitiveTypeAsDataType(shape_.element_type()).value();
      TensorShape tensor_shape;
      Status status = XLAShapeToTensorShape(shape_, &tensor_shape);
      if (!status.ok()) {
        done(status);
        return;
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 22:46:36 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  5. tensorflow/cc/experimental/libtf/impl/tensor_spec.h

    namespace libtf {
    namespace impl {
    /// @brief The TensorSpec struct.
    ///
    /// The TensorSpec describes the shape and dtype of a Tensor.
    
    struct TensorSpec {
      tensorflow::PartialTensorShape shape;
      tensorflow::DataType dtype;
    
      bool operator==(const TensorSpec& o) const {
        return dtype == o.dtype && shape.IsIdenticalTo(o.shape);
      }
    
      /// Overload AbslHashValue to make TensorSpec hashable.
      template <typename H>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Aug 09 21:11:15 UTC 2021
    - 1.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_config.h

      // DT_FLOAT, DT_HALF, DT_QINT8, and DT_QUINT8. When DT_HALF is used, the
      // `weight_quantization` flag needs to set to true. When DT_QUINT8 is used,
      // the `weight_quantization` flag needs to set to false.
      tensorflow::DataType inference_type = tensorflow::DT_FLOAT;
    
      // The input and output data type during inference. This flag is only used
      // when `inference_type` is different from DT_FLOAT. This flag can only be set
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 13 10:16:19 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/transforms/prepare_quantize_helper.cc

    #include "tensorflow/core/framework/types.pb.h"
    
    namespace mlir {
    namespace TFL {
    
    double PowerOfTwoBound(double value) {
      return std::pow(2, std::ceil(std::log2(value)));
    }
    
    tensorflow::DataType GetQuantizedInferenceType(bool is_signed,
                                                   int number_of_bits) {
      if (is_signed && number_of_bits == 8) {
        return tensorflow::DT_QINT8;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 03 12:08:30 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/utils/fake_session.cc

      TF_CHECK_OK(device->resource_manager()->Create(
          container, "var1", new tensorflow::Var(tensorflow::DataType::DT_FLOAT)));
      TF_CHECK_OK(device->resource_manager()->Create(
          container, "var2", new tensorflow::Var(tensorflow::DataType::DT_FLOAT)));
    }
    
    Status FakeSession::Create(const tensorflow::GraphDef& graph) {
      return tensorflow::errors::Unimplemented("not available");
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 03:47:51 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  9. tensorflow/c/ops.cc

    #include "tensorflow/core/framework/common_shape_fns.h"
    #include "tensorflow/core/framework/op.h"
    #include "tensorflow/core/framework/op_def_builder.h"
    #include "tensorflow/core/framework/shape_inference.h"
    
    using ::tensorflow::DataType;
    using ::tensorflow::OpDef;
    using ::tensorflow::OpDefBuilder;
    using ::tensorflow::OpDeprecation;
    using ::tensorflow::OpShapeInferenceFn;
    using ::tensorflow::Set_TF_Status_from_Status;
    using ::tensorflow::Status;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 28 22:41:35 UTC 2022
    - 10.9K bytes
    - Viewed (0)
  10. tensorflow/c/eager/immediate_execution_tensor_handle.cc

      if (!s.ok()) {
        device_name = "<error fetching device name>";
      }
      return absl::StrCat("TensorHandle(", value_string, ", shape=", shape_string,
                          ", dtype=", DataType_Name(DataType()), ", device=\"",
                          device_name, "\")");
    }
    
    Status ImmediateExecutionTensorHandle::SummarizeValue(
        std::string& summary) const {
      Status status;
      AbstractTensorPtr resolved(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 15 09:49:45 UTC 2024
    - 2.1K bytes
    - Viewed (0)
Back to top