Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 21 for Dtype (0.03 sec)

  1. tensorflow/compiler/jit/xla_host_recv_device_context.cc

        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;
      }
    
      *cpu_tensor = Tensor(dtype, tensor_shape);
    
      status = stream_->Memcpy(cpu_tensor->data(), device_memory_base_,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 22:46:36 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/next_pluggable_device/tensor_pjrt_buffer_util.cc

      tensorflow::AsyncValueTensor* av_tensor =
          tensorflow::AsyncValueTensor::FromTensor(tensor);
      if (av_tensor == nullptr) {
        TF_ASSIGN_OR_RETURN(
            *tensor, MakeTensorFromPjRtBuffer(tensor->dtype(), tensor->shape(),
                                              std::move(buffer)));
      } else {
        av_tensor->SetBuffer(std::move(buffer));
      }
      return absl::OkStatus();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 05:48:24 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/stablehlo/utils/tf_type_utils.cc

    namespace mlir::quant::tensorflow {
    
    bool IsTFQintType(const Type type) {
      return mlir::isa<TF::Qint8Type, TF::Qint16Type, TF::Qint32Type,
                       TF::Quint8Type, TF::Quint16Type>(type);
    }
    
    Type GetIntTypeFromTFQint(const Type type) {
      return TypeSwitch<Type, Type>(type)
          .Case<TF::Qint8Type>(
              [&type](Type) { return IntegerType::get(type.getContext(), 8); })
          .Case<TF::Qint16Type>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/lift_variables.cc

          // If the arg type already matches the global_tensor type, we don't need
          // to do anything.
          if (!underlying_type.empty() &&
              underlying_type[0] == global_tensor.getType()) {
            assert(underlying_type.size() == 1);
            continue;
          }
    
          // Otherwise, set this argument's type to the global_tensor's type.
          auto new_arg_type = mlir::RankedTensorType::get(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 23 09:05:47 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/initialize_variables_in_session_init.cc

      for (auto var_and_tensor : llvm::zip(var_ops, resource_tensors_or.value())) {
        auto& var_op = std::get<0>(var_and_tensor);
        auto& resource_tensor = std::get<1>(var_and_tensor);
        if (resource_tensor.dtype() != tensorflow::DT_RESOURCE) {
          InitializeVariable(var_op, &resource_tensor, session_init_func, builder);
          continue;
        }
    
        auto handle = resource_tensor.scalar<tensorflow::ResourceHandle>()();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 23 09:05:47 UTC 2024
    - 7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/utils/constant_utils.cc

        } else {
          return tensorflow::Status(absl::StatusCode::kInvalidArgument,
                                    "Unsupported type");
        }
      } else if (auto itype = mlir::dyn_cast<mlir::IntegerType>(element_type)) {
        if (element_type.isSignedInteger()) {
          switch (itype.getWidth()) {
            case 8:
              return DenseElementsAttr::get<int8_t>(shaped_type,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  7. tensorflow/c/experimental/ops/gen/cpp/views/attr_view.cc

    string AttrView::DefaultValue() const {
      const AttrValue &attr_value = attr_.default_value();
      switch (attr_value.value_case()) {
        case AttrValue::VALUE_NOT_SET:
          return "";
        case AttrValue::kType:
          return DataType_Name(attr_value.type());
        case AttrValue::kS:
          return "\"" + attr_value.s() + "\"";
        case AttrValue::kI:
          return std::to_string(attr_value.i());
        case AttrValue::kF:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jun 03 07:02:00 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/stablehlo/odml_converter/transforms/outline_composites.cc

    func::FuncOp BuildGELUDecomposition(RankedTensorType type,
                                        PatternRewriter& rewriter,
                                        Block* insertion_point) {
      rewriter.setInsertionPointToStart(insertion_point);
    
      auto ftype = FunctionType::get(rewriter.getContext(), {type}, {type});
      auto name = rewriter.getStringAttr("gelu_decomp");
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/utils/convert_type.cc

    tflite::TensorType ConvertTypeToTensorType(mlir::Type type) {
      if (type.isF16()) {
        return tflite::TensorType_FLOAT16;
      } else if (type.isBF16()) {
        return tflite::TensorType_BFLOAT16;
      } else if (type.isF32()) {
        return tflite::TensorType_FLOAT32;
      } else if (type.isF64()) {
        return tflite::TensorType_FLOAT64;
      } else if (mlir::isa<mlir::TF::StringType>(type)) {
        return tflite::TensorType_STRING;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 07 23:04:40 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/stablehlo/odml_converter/folders.cc

      return success();
    }
    
    static LogicalResult FoldDivOp(stablehlo::DivOp op, PatternRewriter& rewriter) {
      auto etype = op.getType().getElementType();
      if (etype.isa<FloatType>()) {
        return FoldDivOpInternal<APFloat>(op, rewriter);
      }
      if (etype.isa<IntegerType>()) {
        return FoldDivOpInternal<APInt>(op, rewriter);
      }
      return failure();
    }
    }  // namespace
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 06:11:55 UTC 2024
    - 4.5K bytes
    - Viewed (0)
Back to top