Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 33 for slice_v1 (0.4 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. tensorflow/compiler/mlir/lite/transforms/optimize.cc

        auto slice_op =
            llvm::dyn_cast_or_null<TFL::SliceOp>(value.getUses().begin().getUser());
        // We only match for the case where value is used by SliceOp.
        if (!slice_op) return std::nullopt;
        DenseElementsAttr begin;
        DenseElementsAttr size;
        if (!matchPattern(slice_op->getOperand(1), m_Constant(&begin)) ||
            !matchPattern(slice_op->getOperand(2), m_Constant(&size)))
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 102.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/increase_dynamism_for_auto_jit_pass.cc

      TF_RETURN_IF_ERROR(GetNodeAttr(n->def(), "value", &proto));
      Tensor tensor(proto->dtype());
      TF_RET_CHECK(tensor.FromProto(*proto));
      return {tensor};
    }
    
    struct SliceInputs {
      Output slice_op;
      Output input;
      Output begin;
      Output size;
    
      // The size of the TF slice operation as a std::vector.  We can always compute
      // this because we only manipulate slices with a Const size.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 13.8K bytes
    - Viewed (0)
Back to top