Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for itype (0.09 sec)

  1. tensorflow/compiler/mlir/lite/flatbuffer_export.cc

        }
        if (ftype.isF64()) {
          return tflite::TensorType_COMPLEX128;
        }
        return Status(absl::StatusCode::kInvalidArgument, "Unsupported type");
      } else if (auto itype = mlir::dyn_cast<mlir::IntegerType>(type)) {
        switch (itype.getWidth()) {
          case 1:
            return tflite::TensorType_BOOL;
          case 4:
            if (itype.isUnsigned()) {
              return Status(absl::StatusCode::kInvalidArgument,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:41:49 UTC 2024
    - 164.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/internal/utils/test_metadata_config.cc

            xla_shape.dimensions(), &tensor_shape));
        arg_shapes.emplace_back(tensor_shape);
    
        DataType dtype;
        TF_RETURN_IF_ERROR(ConvertToDataType(input_type, &dtype));
    
        auto metadata_arg = metadata_proto.add_args();
        metadata_arg->set_kind(tpu::TPUCompileMetadataProto::Arg::PARAMETER);
        metadata_arg->set_dtype(dtype);
      }
    
      return absl::OkStatus();
    }
    
    absl::Status SetupReturnValues(mlir::ModuleOp module,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 13 23:59:33 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  3. 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)
  4. tensorflow/compiler/mlir/tensorflow/ir/tf_generated_ops.td

    for dtype in dtype_list:
      lhs = tf.constant([-1, -5, -3, -14], dtype=dtype)
      rhs = tf.constant([5, 0, 7, 11], dtype=dtype)
    
      right_shift_result = bitwise_ops.right_shift(lhs, rhs)
    
      print(right_shift_result)
    
    # This will print:
    # tf.Tensor([-1 -5 -1 -1], shape=(4,), dtype=int8)
    # tf.Tensor([-1 -5 -1 -1], shape=(4,), dtype=int16)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 23:24:08 UTC 2024
    - 793K bytes
    - Viewed (0)
  5. pkg/controller/job/job_controller.go

    func ensureJobConditionStatus(list []batch.JobCondition, cType batch.JobConditionType, status v1.ConditionStatus, reason, message string, now time.Time) ([]batch.JobCondition, bool) {
    	if condition := findConditionByType(list, cType); condition != nil {
    		if condition.Status != status || condition.Reason != reason || condition.Message != message {
    			*condition = *newCondition(cType, status, reason, message, now)
    			return list, true
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 10 23:56:37 UTC 2024
    - 77.6K bytes
    - Viewed (0)
  6. RELEASE.md

            the layer's dtype. If you had a model that used `float64`, it will
            probably silently use `float32` in TensorFlow2, and a warning will be
            issued that starts with Layer "layer-name" is casting an input tensor
            from dtype float64 to the layer's dtype of float32. To fix, either set
            the default dtype to float64 with
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 23:24:08 UTC 2024
    - 730.3K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssagen/ssa.go

    	if !ptr.Type.IsPtr() || !types.Identical(n.Type(), ptr.Type.Elem()) {
    		base.FatalfAt(n.Pos(), "setHeapaddr %L with type %v", n, ptr.Type)
    	}
    
    	// Declare variable to hold address.
    	sym := &types.Sym{Name: "&" + n.Sym().Name, Pkg: types.LocalPkg}
    	addr := s.curfn.NewLocal(pos, sym, types.NewPtr(n.Type()))
    	addr.SetUsed(true)
    	types.CalcSize(addr.Type())
    
    	if n.Class == ir.PPARAMOUT {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 284.9K bytes
    - Viewed (0)
  8. pkg/kubelet/kubelet_pods.go

    		// node graceful shutdown). We do not re-generate the conditions based
    		// on the container statuses as they are added based on one-time events.
    		cType := v1.DisruptionTarget
    		if _, condition := podutil.GetPodConditionFromList(oldPodStatus.Conditions, cType); condition != nil {
    			s.Conditions = utilpod.ReplaceOrAppendPodCondition(s.Conditions, condition)
    		}
    	}
    
    	// set all Kubelet-owned conditions
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 101.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc

      else
        return UnrankedTensorType::get(type.getValue());
    }
    }  // namespace
    
    // Returns whether type can be further refined.
    bool CanBeRefined(Type type) {
      auto shape_type = mlir::dyn_cast<ShapedType>(type);
      if (!shape_type) return false;
    
      // Returns whether type with subtypes can be further refined.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 08 07:28:49 UTC 2024
    - 134.1K bytes
    - Viewed (0)
  10. pkg/controller/job/job_controller_test.go

    				for _, wantCondition := range *tc.wantConditions {
    					conditions := getConditionsByType(actual.Status.Conditions, wantCondition.Type)
    					if len(conditions) != 1 {
    						t.Fatalf("Expected a single completion condition. Got %#v for type: %q", conditions, wantCondition.Type)
    					}
    					condition := *conditions[0]
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 15:36:36 UTC 2024
    - 229.2K bytes
    - Viewed (0)
Back to top