Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 210 for Dtype (0.03 sec)

  1. tensorflow/compiler/mlir/tensorflow/utils/convert_type.cc

        switch (itype.getWidth()) {
          case 1:
            *dtype = DT_BOOL;
            return absl::OkStatus();
          case 4:
            *dtype = itype.isUnsigned() ? DT_UINT4 : DT_INT4;
            return absl::OkStatus();
          case 8:
            *dtype = itype.isUnsigned() ? DT_UINT8 : DT_INT8;
            return absl::OkStatus();
          case 16:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  2. tensorflow/cc/experimental/base/tests/tensorhandle_test.cc

      ASSERT_TRUE(status.ok()) << status.message();
    
      TF_DataType dtype = TypeParam::kDType;
      // This is our 1D tensor of varying dtype.
      std::vector<typename TypeParam::type> value = {42, 100, 0, 1, 4, 29};
      // Shape is Rank 2 vector with shape 2 x 3.
      std::vector<int64_t> shape({2, 3});
    
      Tensor original_tensor = Tensor::FromBuffer(
          /*dtype=*/dtype, /*shape=*/shape,
          /*data=*/value.data(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 09:56:08 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tfrt/tests/tf_to_corert/attributes.mlir

      // CHECK: tf.ReadVariableOp
      // CHECK-SAME: dtype = !corert.quint8
      %0 = "tf.ReadVariableOp"(%arg0) {_output_shapes = ["tfshape$dim { size: 1 } dim { size: 3 }"], device = "/device:CPU:0", dtype = !tf_type.quint8} : (tensor<!tf_type.resource<tensor<1x3x!tf_type.quint8>>>) -> tensor<1x3x!tf_type.quint8>
    
      // CHECK: tf.ReadVariableOp
      // CHECK-SAME: dtype = !corert.quint16
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 00:18:59 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  4. tensorflow/cc/experimental/base/tests/tensor_test.cc

      Tensor tensor = Tensor::FromBuffer(
          /*dtype=*/dtype, /*shape=*/shape,
          /*data=*/value.data(),
          /*len=*/value.size() * sizeof(typename TypeParam::type),
          /*deleter=*/[](void*, size_t) {}, &status);
      ASSERT_TRUE(status.ok()) << status.message();
    
      EXPECT_EQ(tensor.dims(), 1);
      EXPECT_EQ(tensor.dtype(), dtype);
      absl::Span<const typename TypeParam::type> tensor_view(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 09:56:08 UTC 2024
    - 6K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/saved_model/core/ops/variable_ops.cc

                                               DataType dtype, TensorShape shape,
                                               const char* raw_device_name,
                                               ImmediateTensorHandlePtr* handle) {
      ImmediateOpPtr varhandle_op(ctx->CreateOperation());
    
      TF_RETURN_IF_ERROR(varhandle_op->Reset("VarHandleOp", raw_device_name));
      TF_RETURN_IF_ERROR(varhandle_op->SetAttrType("dtype", dtype));
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 23 11:28:19 UTC 2024
    - 5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/utils/convert_type.h

    using tsl::StatusOr;
    
    // Converts the TensorFlow DataType 'dtype' into an MLIR (scalar) type.
    Status ConvertDataType(DataType dtype, mlir::Builder builder, mlir::Type* type);
    
    // Converts a scalar MLIR type to a TensorFlow Datatype.
    Status ConvertScalarTypeToDataType(mlir::Type type, DataType* dtype);
    
    // Converts an MLIR type to TensorFlow DataType. If 'type' is a scalar type, it
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/tests/end2end/fake_quant_without_identity.pbtxt

            }
          }
        }
      }
    }
    node {
      name: "BoxPredictor_4/ClassPredictor/weights"
      op: "Const"
      attr {
        key: "dtype"
        value {
          type: DT_FLOAT
        }
      }
      attr {
        key: "value"
        value {
          tensor {
            dtype: DT_FLOAT
            tensor_shape {
              dim {
                size: 1
              }
              dim {
                size: 1
              }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/tests/end2end/fake_quant_without_identity_4bit.pbtxt

            }
          }
        }
      }
    }
    node {
      name: "BoxPredictor_4/ClassPredictor/weights"
      op: "Const"
      attr {
        key: "dtype"
        value {
          type: DT_FLOAT
        }
      }
      attr {
        key: "value"
        value {
          tensor {
            dtype: DT_FLOAT
            tensor_shape {
              dim {
                size: 1
              }
              dim {
                size: 1
              }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  9. tensorflow/c/tf_tensor.cc

      return CreateTensor(buf, dtype, dims, num_dims, len);
    }
    
    TF_Tensor* TF_NewTensor(TF_DataType dtype, const int64_t* dims, int num_dims,
                            void* data, size_t len,
                            void (*deallocator)(void* data, size_t len, void* arg),
                            void* deallocator_arg) {
      TF_ManagedBuffer* buf = nullptr;
      if (dtype != TF_STRING && dtype != TF_RESOURCE &&
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 21:57:32 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/stablehlo/transforms/op_stat_pass.cc

            auto operand_or_result = value_shaped_type.getElementType();
            std::string dtype;
    
            TypeSwitch<Type>(operand_or_result)
                .Case<IntegerType>([&](Type) {
                  dtype =
                      absl::StrCat("i", operand_or_result.getIntOrFloatBitWidth());
                })
                .Case<FloatType>([&](Type) {
                  dtype =
                      absl::StrCat("f", operand_or_result.getIntOrFloatBitWidth());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.7K bytes
    - Viewed (0)
Back to top