Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for Tperm (0.05 sec)

  1. tensorflow/compiler/mlir/tensorflow/tests/tf-ops.mlir

      // expected-error @+1 {{expected perm to be a 1-D Tensor, got perm of rank 2}}
      %0 = "tf.Transpose"(%arg0, %arg1) {T = "tfdtype$DT_FLOAT", Tperm = "tfdtype$DT_INT32"} : (tensor<2x3xf32>, tensor<1x2xi32>) -> tensor<3x2xf32>
      func.return %0 : tensor<3x2xf32>
    }
    
    // -----
    
    // Test tf.Transpose with invalid size of perm
    func.func @testTranspose(tensor<2x3xf32>) -> tensor<3x2xf32> {
    ^bb0(%arg0: tensor<2x3xf32>):
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 23 14:40:35 UTC 2023
    - 236.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/transforms/optimize.cc

      bool TransposeFirstTwoDimToLast(DenseIntElementsAttr perm) const {
        int rank = perm.getNumElements();
        if (rank < 3) return false;
        for (int i = 0; i < rank - 2; i++) {
          if (perm.getValues<APInt>()[i] != i + 2) {
            return false;
          }
        }
        return perm.getValues<APInt>()[rank - 2] == 0 &&
               perm.getValues<APInt>()[rank - 1] == 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)
  3. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc

      auto perm = GetDataFormatPermutation(this->getDataFormat(), data_format);
      if (perm.empty()) return failure();
    
      // Update data_format attribute and result types.
      if (failed(::mlir::TF::UpdateDataFormat(data_format, this))) return failure();
    
      // Update convolution attributes.
      (*this)->setAttr("dilations", ShuffleArrayAttr(getDilations(), perm));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 146.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

      }
      return TransposeOp::build(builder, result, UnrankedTensorType::get(etype), x,
                                perm);
    }
    
    namespace {
    
    OpFoldResult FoldIdentityTranspose(TransposeOp op) {
      DenseIntElementsAttr perm;
      if (!matchPattern(op.getPerm(), m_Constant(&perm))) return {};
      const auto elements = perm.getValues<APInt>();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/ir/tfl_ops.cc

          return op.emitOpError(
              "perm tensor elements size is not equal to input tensor rank");
        }
      }
    
      DenseIntElementsAttr perm;
      if (!matchPattern(op.getPerm(), m_Constant(&perm))) {
        return success();
      }
    
      int index = 0;
      llvm::SmallVector<int64_t, 4> axes;
      for (const auto& axis_int : perm.getValues<APInt>()) {
        int64_t axis = axis_int.getSExtValue();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 169.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/stablehlo/tests/uniform-quantized-stablehlo-to-tfl.mlir

    // CHECK: %[[BROADCAST_DIM:.+]] = arith.constant
    // CHECK{LITERAL}: dense<[2, 3]> : tensor<2xi32>
    // CHECK: %[[PERM:.+]] = arith.constant
    // CHECK{LITERAL}: dense<[1, 0]> : tensor<2xi32>
    // CHECK: %[[TRANSPOSE:.+]] = "tfl.transpose"(%[[ARG0]], %[[PERM]]) : (tensor<1x2x!quant.uniform<i8:f32, 2.000000e+00:3>>, tensor<2xi32>) -> tensor<2x1x!quant.uniform<i8:f32, 2.000000e+00:3>>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 17:10:32 UTC 2024
    - 106.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/stablehlo/transforms/uniform_quantized_stablehlo_to_tfl_pass.cc

        auto perm_attr = DenseIntElementsAttr::get(perm_type, permutation);
        auto perm = rewriter.create<arith::ConstantOp>(op.getLoc(), perm_attr);
        Value input = op.getOperand();
    
        return rewriter.create<TFL::TransposeOp>(op.getLoc(), input, perm);
      }
    
      Value InsertExpandDimsOp(stablehlo::BroadcastInDimOp op,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 09:00:19 UTC 2024
    - 99.8K bytes
    - Viewed (0)
  8. src/cmd/go/internal/work/exec.go

    		return err
    	}
    
    	if err := sh.Mkdir(a.Objdir); err != nil {
    		return err
    	}
    
    	perm := fs.FileMode(0666)
    	if a1.Mode == "link" {
    		switch cfg.BuildBuildmode {
    		case "c-archive", "c-shared", "plugin":
    		default:
    			perm = 0777
    		}
    	}
    
    	// make target directory
    	dir, _ := filepath.Split(a.Target)
    	if dir != "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 14:46:37 UTC 2024
    - 105.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/ir/tfl_ops.td

        TFL_TensorOf<[I32]>:$perm
      );
    
      let results = (outs
        TFL_TensorOf<[I32, F32, I8, UI8, QI8, QUI8, TFL_Quint8, I1, I64, QI16]>:$output
      );
    
      let hasVerifier = 1;
    
      let hasFolder = 1;
    
      let hasCanonicalizer = 1;
    
      let builders = [
        OpBuilder<(ins "Value":$input, "Value":$perm),
        [{ BuildTransposeOp(&$_builder, $_state, input, perm); }]>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 19:09:08 UTC 2024
    - 186K bytes
    - Viewed (0)
  10. pkg/kubelet/kubelet_pods.go

    				// later auto-create it with the incorrect mode 0750
    				// Make extra care not to escape the volume!
    				perm, err := hu.GetMode(volumePath)
    				if err != nil {
    					return nil, cleanupAction, err
    				}
    				if err := subpather.SafeMakeDir(subPath, volumePath, perm); err != nil {
    					// Don't pass detailed error back to the user because it could give information about host filesystem
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 101.2K bytes
    - Viewed (0)
Back to top