Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 149 for Dtype (0.05 sec)

  1. tensorflow/compiler/mlir/tfrt/saved_model/saved_model.cc

    absl::StatusOr<std::pair<tensorflow::DataType, tensorflow::PartialTensorShape>>
    ProcessTensorSpec(mlir::TensorType type) {
      tensorflow::DataType dtype;
      TF_RETURN_IF_ERROR(
          ConvertScalarTypeToDataType(type.getElementType(), &dtype));
    
      if (!type.hasRank())
        return std::make_pair(dtype, tensorflow::PartialTensorShape());
    
      auto shape = type.getShape();
      llvm::SmallVector<int64_t, 4> dims;
      dims.assign(shape.begin(), shape.end());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/encapsulate_subgraphs_pass.cc

            absl::StrCat(src_node->name(), "_", src_slot, "_retval"), kRetValOp,
            NodeDebugInfo(src_node->def()));
        DataType dtype = src_node->output_type(src_slot);
        builder.Attr("T", dtype);
        builder.Attr("index", ret_index);
        builder.Input(src_image->name(), src_slot, dtype);
        Status s = builder.Finalize(&ret_def);
        if (!s.ok()) return s;
        TF_ASSIGN_OR_RETURN(Node * ret, graph_->AddNode(ret_def));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 51K bytes
    - Viewed (0)
  3. 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)
  4. tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc

          OpT op, typename OpT::Adaptor adaptor,
          ConversionPatternRewriter &rewriter) const override {
        Type dtype = op.getElementDtype();
        if (!(dtype.isF16() || dtype.isF32() || dtype.isF64() ||
              dtype.isInteger(1) || dtype.isInteger(8) || dtype.isInteger(16) ||
              dtype.isInteger(32) || dtype.isInteger(64))) {
          const char *error_info =
              "requires element_dtype to be 1-bit/8-bit/16-bit/32-bit/64-bit "
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 70.7K bytes
    - Viewed (0)
  5. tensorflow/c/kernels/summary_op_test.cc

      def.set_device(DEVICE_CPU);
    
      AttrValue valuesTypeAttr;
      SetAttrValue(values->dtype(), &valuesTypeAttr);
      (*def.mutable_attr())["T"] = valuesTypeAttr;
    
      def.add_input(strings::StrCat("input1: ", DataTypeString(tags->dtype())));
      def.add_input(strings::StrCat("input2: ", DataTypeString(values->dtype())));
    
      std::unique_ptr<OpKernel> kernel =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jul 18 15:10:51 UTC 2022
    - 6.7K bytes
    - Viewed (0)
  6. tensorflow/c/eager/c_api_distributed_test.cc

          "      attr {"
          "        key: 'dtype'"
          "        value {"
          "          type: DT_FLOAT"
          "        }"
          "      }"
          "    }"
          "    node_def {"
          "      name: 'read1'"
          "      op: 'ReadVariableOp'"
          "      input: 'var'"
          "      device: '/job:localhost/replica:0/task:1/device:CPU:0'"
          "      attr {"
          "        key: 'dtype'"
          "        value {"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 15 09:49:45 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/jit/tests/auto_clustering_test.cc

      // Generated from
      //
      //  TARGET_PATH=tensorflow_models/official/legacy/image_classification       \
      //  bazel run -c opt --config=cuda ${TARGET_PATH}:resnet_imagenet_main       \
      //    -- --skip_eval --num_gpus=1 --dtype=fp16 --batch_size=192              \
      //    --train_steps=210 --enable_xla --enable_eager=true
      //
      // At CL 245846452
      TF_ASSERT_OK(RunAutoClusteringTestWithPbtxt("keras_imagenet_main"));
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 13 20:13:03 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/c/c_api_unified_experimental_mlir.cc

      ctx.appendDialectRegistry(registry);
      ctx.loadAllAvailableDialects();
    }
    
    Status ConvertDataTypeToTensor(tensorflow::DataType dtype, Builder builder,
                                   Type* type) {
      Status s = tensorflow::ConvertDataType(dtype, builder, type);
      if (s.ok()) *type = UnrankedTensorType::get(*type);
      return s;
    }
    
    class MlirTensor : public TracingTensorHandle {
     public:
      explicit MlirTensor(Value value)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/utils/convert_tensor_test.cc

    class ConvertTensorTest : public ::testing::Test {
     protected:
      template <typename T>
      void VerifyConversion(std::initializer_list<T> values, DataType dtype,
                            mlir::Type expected_ty) {
        mlir::Builder b(expected_ty.getContext());
        Tensor tensor(dtype, TensorShape({static_cast<int64_t>(values.size())}));
        tensor.flat<T>().setValues(values);
    
        auto value_or = ConvertTensor(tensor, &b);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  10. 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)
Back to top