Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 172 for itype (0.14 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. src/runtime/mfinal.go

    				case abi.Interface:
    					ityp := (*interfacetype)(unsafe.Pointer(f.fint))
    					// set up with empty interface
    					(*eface)(r)._type = &f.ot.Type
    					(*eface)(r).data = f.arg
    					if len(ityp.Methods) != 0 {
    						// convert to interface with methods
    						// this conversion is guaranteed to succeed - we checked in SetFinalizer
    						(*iface)(r).tab = assertE2I(ityp, (*eface)(r)._type)
    					}
    				default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 01:56:56 UTC 2024
    - 19K bytes
    - Viewed (0)
  3. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/analysis/HiddenInDslTest.kt

        @Test
        fun `handles the hidden properties correctly`() {
            val aType = schema.dataClassesByFqName.getValue(DefaultFqName.parse(HasHiddenProperty::class.qualifiedName!!))
            assertTrue { aType.properties.single { it.name == "y" }.isHiddenInDsl }
    
            val result = schema.resolve(
                """
                x = 1
                y = 2
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 10:08:01 UTC 2024
    - 2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow_to_stablehlo/python/integration_test/tensorflow_to_stablehlo_test.py

      class AddOneModel(tf.keras.Model):
    
        def call(self, x):
          return x + 1
    
      model = AddOneModel()
    
      x_train = tf.constant([1, 2, 3, 4, 5], dtype=tf.float32)
      y_train = tf.constant([2, 3, 4, 5, 6], dtype=tf.float32)
    
      model.compile(optimizer='sgd', loss='mse')
      model.fit(x_train, y_train, epochs=1)
    
      path = tempdir + '/add_one_model'
      model.save(path)
      return path
    
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 22:58:42 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  5. cmd/generic-handlers.go

    // guessIsMetricsReq - returns true if incoming request looks
    // like metrics request
    func guessIsMetricsReq(req *http.Request) bool {
    	if req == nil {
    		return false
    	}
    	aType := getRequestAuthType(req)
    	return (aType == authTypeAnonymous || aType == authTypeJWT) &&
    		req.URL.Path == minioReservedBucketPath+prometheusMetricsPathLegacy ||
    		req.URL.Path == minioReservedBucketPath+prometheusMetricsV2ClusterPath ||
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 06 01:01:15 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  6. 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)
  7. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_metadata_utils.cc

      for (auto operand_type_and_idx : llvm::enumerate(op.getOperandTypes())) {
        Type operand_type = operand_type_and_idx.value();
        int index = operand_type_and_idx.index();
        tensorflow::tpu::TPUCompileMetadataProto::Arg* arg = metadata->add_args();
        tensorflow::DataType dtype;
        tensorflow::Status status =
            tensorflow::ConvertToDataType(operand_type, &dtype);
        if (!status.ok())
          return op.emitOpError(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tfrt/tests/tf_to_corert/control_flow.mlir

      %0 = "tf.Const"() {device = "/device:CPU:0", value = dense<9> : tensor<i32>} : () -> tensor<i32>
      %1 = "tf.ReadVariableOp"(%arg) {device = "/device:CPU:0", dtype = i32} : (tensor<!tf_type.resource<tensor<i32>>>) -> tensor<i32>
      %2 = "tf.Less"(%1, %0) {device = "/device:CPU:0"} : (tensor<i32>, tensor<i32>) -> tensor<i1>
      func.return %2 : tensor<i1>
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 00:40:32 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/utils/export_utils.cc

    }
    
    Status ConvertAttribute(mlir::Type type, bool remove_ref_type,
                            AttrValue* value) {
      DataType dtype;
      TF_RETURN_IF_ERROR(ConvertToDataType(type, &dtype));
      if (tensorflow::IsRefType(dtype)) dtype = tensorflow::RemoveRefType(dtype);
      value->set_type(dtype);
      return absl::OkStatus();
    }
    
    Status ConvertAttribute(const mlir::TypeAttr& type, bool remove_ref_type,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/xla_tpu_device.cc

        }
    
        se::Stream* const src_compute_stream = src_xla_context->stream();
        TF_RET_CHECK(src_compute_stream != nullptr);
        TF_RET_CHECK(input->dtype() == output->dtype())
            << "input type: " << DataTypeString(input->dtype()) << " output type "
            << DataTypeString(output->dtype());
        TF_RET_CHECK(input->shape() == output->shape());
        TF_RET_CHECK(DMAHelper::CanUseDMA(input));
        auto* const src_compute_stream_impl =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 22:53:47 UTC 2024
    - 20.9K bytes
    - Viewed (0)
Back to top