Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 37 for slice_v1 (0.16 sec)

  1. src/sort/sort_test.go

    func TestSortFloat64sCompareSlicesSort(t *testing.T) {
    	slice1 := slices.Clone(float64s[:])
    	slice2 := slices.Clone(float64s[:])
    
    	Sort(Float64Slice(slice1))
    	slices.Sort(slice2)
    
    	// Compare for equality using cmp.Compare, which considers NaNs equal.
    	if !slices.EqualFunc(slice1, slice2, func(a, b float64) bool { return cmp.Compare(a, b) == 0 }) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 19:41:04 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/tests/lower-static-tensor-list.mlir

    // CHECK:  [[SLICE_1:%.*]] = "tf.Slice"([[INPUT]], [[START_POS_1]], [[SLICE_SIZE_1]]) : (tensor<3x10xf32>, tensor<?xi32>, tensor<?xi32>) -> tensor<*xf32>
    
    
    // CHECK:  [[EXPANDED_ITEM:%.*]] = "tf.ExpandDims"([[ITEM]], [[ZERO]]) : (tensor<10xf32>, tensor<i32>) -> tensor<*xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 39.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

      // All masks are `0` except `shrink_axis_mask` which is equal to `1` (slicing
      // scalar value from input vector).
      if (slice_op.getBeginMask() != 0 || slice_op.getEllipsisMask() != 0 ||
          slice_op.getEndMask() != 0 || slice_op.getNewAxisMask() != 0 ||
          slice_op.getShrinkAxisMask() != 1)
        return {};
    
      // Returns a value if the `value` is defined by a ConstOp with a single
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
  4. src/encoding/gob/type_test.go

    		t.Errorf("array printed as %q; expected %q", str, expected)
    	}
    }
    
    func TestSliceType(t *testing.T) {
    	var s []int
    	sint := getTypeUnlocked("slice", reflect.TypeOf(s))
    	var news []int
    	newsint := getTypeUnlocked("slice1", reflect.TypeOf(news))
    	if sint != newsint {
    		t.Errorf("second registration of []int creates new type")
    	}
    	var b []bool
    	sbool := getTypeUnlocked("", reflect.TypeOf(b))
    	if sbool == sint {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 01 14:26:13 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  5. tests/upsert_test.go

    			t.Fatalf("failed to update user's updated_at, old: %v, new: %v", user2.UpdatedAt, user3.UpdatedAt)
    		}
    	}
    }
    
    func TestUpsertSlice(t *testing.T) {
    	langs := []Language{
    		{Code: "upsert-slice1", Name: "Upsert-slice1"},
    		{Code: "upsert-slice2", Name: "Upsert-slice2"},
    		{Code: "upsert-slice3", Name: "Upsert-slice3"},
    	}
    	DB.Clauses(clause.OnConflict{DoNothing: true}).Create(&langs)
    
    	var langs2 []Language
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Sep 05 07:39:19 UTC 2022
    - 11.4K bytes
    - Viewed (0)
  6. test/codegen/slices.go

    	// ppc64x:"SUBC",-"NEG"
    	return a[(3 - b):]
    }
    
    // --------------------------------------- //
    //   Code generation for unsafe.Slice      //
    // --------------------------------------- //
    
    func Slice1(p *byte, i int) []byte {
    	// amd64:-"MULQ"
    	return unsafe.Slice(p, i)
    }
    func Slice0(p *struct{}, i int) []struct{} {
    	// amd64:-"MULQ"
    	return unsafe.Slice(p, i)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 23 18:57:27 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/tests/replace_cast_hacks_with_tf_xla_ops.mlir

    // CHECK: %[[SLICE_1:.*]] = "tf.Slice"(%[[SHAPE]], %[[CONST]], %[[CONST_2]]) : (tensor<3xi64>, tensor<1xi32>, tensor<1xi32>) -> tensor<1xi64>
    // CHECK: %[[SLICE_2:.*]] = "tf.Slice"(%[[SHAPE]], %[[CONST_2]], %[[CONST_1]]) : (tensor<3xi64>, tensor<1xi32>, tensor<1xi32>) -> tensor<2xi64>
    // CHECK: %[[BROADCAST_ARGS:.*]] = "tf.BroadcastArgs"(%[[SLICE_1]], %[[CONST_4]]) : (tensor<1xi64>, tensor<0xi64>) -> tensor<1xi64>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 81K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tfr/python/tfr_gen.py

        type_ = self._get_inferred_type(node.value, ty)
    
        # TODO(fengliuai): Here we hardcode the node.slice here to get the index
        # type. Use the visit method once the type inference is done.
        # slice_val, slice_ty = self.visit(node.slice)
        s = node.slice
        if not isinstance(s, (ast.Tuple, ast.Slice)):
          if isinstance(s, ast.Constant):
            # TODO(fengliuai): promote to an assignment
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 27 15:27:03 UTC 2022
    - 55.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc

            vector_one);
        auto slice_op =
            CreateSliceOpForTensorList(loc, /*input_list=*/input,
                                       /*start_index=*/scalar_zero, /*size=*/size,
                                       /*item_rank=*/partial_position_shape,
                                       /*result_type=*/result_type, rewriter);
        rewriter->create<func::ReturnOp>(loc, ArrayRef<Value>({slice_op}));
      }
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 70.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/tpu_space_to_depth_pass.cc

          GetReshapeOpForConv2DFilter(last_reshape_shape, transpose_op, &builder);
    
      // create slice op.
      auto slice_op = GetSliceOpForConv2DBackPropFilter(old_filter_shape,
                                                        final_reshape_op, &builder);
    
      // Update backprop's user with the slice op.
      backprop.replaceAllUsesWith(slice_op.getResult());
    }
    
    // Checks if the input producer op is supported in this transform. Right now, we
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 29.3K bytes
    - Viewed (0)
Back to top