Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 116 for testvalues (0.16 sec)

  1. tensorflow/compiler/mlir/lite/stablehlo/transforms/hlo_matchers.cc

        }
        assert(data.getNumElements() == element_count);
      }
    
      using StridedArrayViewBase::NextTensorIndex;
      using StridedArrayViewBase::size;
    
      int64_t operator[](int64_t i) const {
        return data_.getValues<APInt>()[OffsetForIndex(i)].getSExtValue();
      }
    
     private:
      const DenseIntElementsAttr& data_;
    };
    
    // It matches %iota generated from the following mlir codes:
    //
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/quantization/ir/QuantizeUtils.cc

        SparseElementsAttr realSparseAttr,
        quant::QuantizedType quantizedElementType,
        const UniformQuantizedValueConverter &converter) {
      DenseElementsAttr realDenseAttr = realSparseAttr.getValues();
      if (!mlir::isa<DenseFPElementsAttr>(realDenseAttr)) {
        return nullptr;
      }
      DenseElementsAttr quantDenseAttr =
          convertDenseFPElementsAttr(mlir::cast<DenseFPElementsAttr>(realDenseAttr),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/stablehlo/transforms/optimize_layout.cc

        int64_t rank = transpose_perm.size();
        DenseIntElementsAttr new_padding_attr = nullptr;
        if (padding.has_value()) {
          SmallVector<int64_t> new_padding(rank * 2, 0);
          auto old_padding = (*padding).getValues<int64_t>();
          for (int64_t idx = 0; idx < rank; ++idx) {
            new_padding[2 * transpose_perm[idx]] = old_padding[2 * idx];
            new_padding[2 * transpose_perm[idx] + 1] = old_padding[2 * idx + 1];
          }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 21:59:06 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/stablehlo/passes/fold_constant_transpose.cc

        const ArrayRef<int64_t> original_shape =
            value_attr.getShapedType().getShape();
    
        const SmallVector<float> original_values =
            llvm::to_vector(value_attr.getValues<float>());
    
        // Fold the constant value by transposing the values according to the
        // `TransposeOp`'s permutation attribute.
        const DenseElementsTransposer transposer(original_shape,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  5. subprojects/core/src/main/java/org/gradle/plugin/use/internal/PluginUseScriptBlockMetadataCompiler.java

                if (argumentExpression instanceof GStringExpression) {
                    GStringExpression gStringExpression = (GStringExpression) argumentExpression;
                    for (Expression value : gStringExpression.getValues()) {
                        if (!(value instanceof VariableExpression)) {
                            return false;
                        }
                    }
    
                    return true;
                }
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 28 01:30:32 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/transforms/legalize_hashtables.cc

        if (hashtable_op == nullptr) return failure();
        rewriter.replaceOpWithNewOp<TFL::HashtableImportOp>(
            import_op, import_op->getResultTypes(), import_op.getTableHandle(),
            import_op.getKeys(), import_op.getValues());
        return success();
      }
    };
    
    class LegalizeHashTableSizeOpPattern
        : public OpRewritePattern<TF::LookupTableSizeV2Op> {
     public:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/collection_ops_util.cc

      auto max_count_const_op = llvm::dyn_cast<TF::ConstOp>(max_count_op);
      if (!max_count_const_op) return op->emitOpError("unknown max element count");
      int64_t max_size_const =
          (*max_count_const_op.getValue().getValues<APInt>().begin())
              .getSExtValue();
      return CreateInitBufferValue(element_shape, max_size_const, op, element_dtype,
                                   builder, buffer);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/crawler/transformer/AbstractFessFileTransformer.java

                    getLogger().debug("ExtractData: {}", extractData);
                }
                // meta
                extractData.getKeySet().stream().filter(k -> extractData.getValues(k) != null).forEach(key -> {
                    final String[] values = extractData.getValues(key);
                    metaDataMap.put(key, values);
    
                    // meta -> content
                    if (fessConfig.isCrawlerMetadataContentIncluded(key)) {
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tfrt/analysis/cost_analysis.cc

      // etc.
      constexpr int64_t kLookupTableFindCostScale = 8;
      constexpr int64_t kLookupTableFindStringKeyCostScale = 16;
    
      auto value_type = mlir::cast<mlir::TensorType>(op.getValues().getType());
      auto key_type = mlir::cast<mlir::TensorType>(op.getKeys().getType());
    
      int64_t output_size = InferTensorSize(context, value_type);
    
      int64_t cost = kLookupTableFindCostScale * output_size;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  10. src/flag/flag.go

    	}
    	ptrVal.Elem().Set(defVal)
    	return textValue{p}
    }
    
    func (v textValue) Set(s string) error {
    	return v.p.UnmarshalText([]byte(s))
    }
    
    func (v textValue) Get() interface{} {
    	return v.p
    }
    
    func (v textValue) String() string {
    	if m, ok := v.p.(encoding.TextMarshaler); ok {
    		if b, err := m.MarshalText(); err == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:38:24 UTC 2024
    - 39.7K bytes
    - Viewed (0)
Back to top