Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for cst0 (0.12 sec)

  1. tensorflow/compiler/mlir/lite/tests/ops.mlir

    // -----
    
    // CHECK-LABEL: testDilate
    func.func @testDilate(%arg0: tensor<3x4x5xf32>) -> tensor<5x7x9xf32> {
      // CHECK: "tfl.dilate"(%arg0, %cst, %cst_0)
      %cst = arith.constant dense<1> : tensor<3xi32>
      %cst_0 = arith.constant dense<-1.0> : tensor<f32>
      %0 = "tfl.dilate"(%arg0, %cst, %cst_0) : (tensor<3x4x5xf32>, tensor<3xi32>, tensor<f32>) -> tensor<5x7x9xf32>
      func.return %0 : tensor<5x7x9xf32>
      // CHECK: return %0 : tensor<5x7x9xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 19:09:08 UTC 2024
    - 189.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/tests/shape_inference.mlir

        %cst = "tf.Const"() {value = dense<6> : tensor<1xi32>} : () -> tensor<1xi32>
        %cst_0 = "tf.Const"() {value = dense<2> : tensor<1xi32>} : () -> tensor<1xi32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 23 17:24:10 UTC 2024
    - 167.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/tests/legalize-tf.mlir

      func.return %0 : tensor<40x40xf32>
    // CHECK-LABEL: matmul
    // CHECK: %[[CST:.*]] = arith.constant dense<[1, 0]> : tensor<2xi32>
    // CHECK: %[[ARG:.*]] = "tfl.transpose"(%arg1, %[[CST]]) : (tensor<37x40xf32>, tensor<2xi32>) -> tensor<40x37xf32>
    // CHECK: %[[CST_0:.*]] = "tfl.no_value"() <{value}> : () -> none
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 05 01:54:33 UTC 2024
    - 153.4K bytes
    - Viewed (0)
  4. src/net/http/transport_test.go

    				timeout *= 2
    				retry = true
    				cst.close()
    			}
    			return true
    		}
    
    		if _, err := cst.c.Get(cst.ts.URL); err != nil {
    			if tooShort(err) {
    				continue
    			}
    			t.Fatalf("got error: %s", err)
    		}
    
    		time.Sleep(10 * timeout)
    		if _, err := cst.c.Get(cst.ts.URL); err != nil {
    			if tooShort(err) {
    				continue
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/optimize.cc

        // Only fuse multiplier if all dimensions other than the depth dimension
        // are equal to 1 since otherwise
        // `matmul(x, filter) * cst != matmul(x, filter * cst)`
        // even if `filter` and `cst` are be broadcastable.
        auto shape = cst.getType().getShape();
        if (!IsDimensionsDegenerateExceptLastOne(shape)) return failure();
    
        int64_t element_size = shape.empty() ? 1 : shape[shape.size() - 1];
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 102.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/tests/tf-ops.mlir

      %cst = "tf.Const"() {value = dense<0> : tensor<4x2xi32>} : () -> tensor<4x2xi32>
      %cst_0 = "tf.Const"() {value = dense<[2, 2, 1, 1]> : tensor<4xi32>} : () -> tensor<4xi32>
      %cst_1 = "tf.Const"() {value = dense<[2, 3, 1, 1]> : tensor<4xi32>} : () -> tensor<4xi32>
      // expected-error @+1 {{'tf.XlaSelectAndScatter' op has no select function specified}}
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 23 14:40:35 UTC 2023
    - 236.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/flatbuffer_export.cc

      ElementsAttr attr;
      if (auto cst = dyn_cast<mlir::arith::ConstantOp>(inst)) {
        // arith::ConstantOp have ElementAttr at this point due to validation of the
        // TFLite module.
        attr = mlir::cast<ElementsAttr>(cst.getValue());
      } else if (auto cst = dyn_cast<mlir::TF::ConstOp>(inst)) {
        attr = cst.getValue();
      } else if (auto cst = dyn_cast<tfl::ConstOp>(inst)) {
        attr = cst.getValue();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:41:49 UTC 2024
    - 164.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/tests/canonicalize.mlir

      // CHECK: return %[[RESULT]]
      %cst_0 = arith.constant dense<0> : tensor<i32>
      %0 = "tf.Maximum"(%arg0, %cst_0) {device = "/job:localhost/replica:0/task:0/device:GPU:0", dtype = i32} : (tensor<4xi32>, tensor<i32>) -> tensor<4xi32>
      func.return %0 : tensor<4xi32>
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 132.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/stablehlo/tests/uniform-quantized-stablehlo-to-tfl.mlir

    }
    // CHECK-LABEL: transpose
    // CHECK-SAME: %[[ARG0:.+]]: tensor<2x3x4x!quant.uniform<i8:f32, 2.000000e+00:-1>>
    // CHECK-NOT: stablehlo.transpose
    // CHECK: %[[CST:.+]] = arith.constant dense<[2, 1, 0]> : tensor<3xi32>
    // CHECK: %[[TRANSPOSE:.+]] = "tfl.transpose"(%[[ARG0]], %[[CST]]) : (tensor<2x3x4x!quant.uniform<i8:f32, 2.000000e+00:-1>>, tensor<3xi32>) -> tensor<4x3x2x!quant.uniform<i8:f32, 2.000000e+00:-1>>
    // CHECK: return %[[TRANSPOSE]]
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 17:10:32 UTC 2024
    - 106.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/ir/tfl_ops.cc

      // considered dynamic so use -1 here if k is not a constant value.
      int const_k = -1;
      ElementsAttr cst;
      if (matchPattern(k, m_Constant(&cst)))
        // These casts should all be valid due to how Tensor constants are stored.
        // TODO(jpienaar): This should use a helper function.
        const_k = cst.getValues<IntegerAttr>()[0].getValue().getSExtValue();
    
      auto val_type = input.getType().cast<TensorType>();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 169.2K bytes
    - Viewed (0)
Back to top