- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 2,166 for constant_ (0.17 sec)
-
tensorflow/compiler/mlir/lite/tests/prepare-tf-fake-quant-4bit.mlir
func.return %rst : tensor<256x8x7x16xf32> // CHECK-DAG: %[[CONSTANT:.*]] = arith.constant dense<0.000000e+00> : tensor<16xf32> // CHECK-DAG: %[[CONSTANT0:.*]] = arith.constant dense<0.000000e+00> : tensor<16x3x3x3xf32> // CHECK: %[[QUANTIZE:.*]] = "tfl.quantize"(%[[CONSTANT0]]) <{qtype = tensor<16x3x3x3x!quant.uniform<u4:f32, 1.000000e+00>>}>
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 09:41:17 UTC 2024 - 22K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/unfold_large_splat_constant.cc
#include "tensorflow/compiler/mlir/lite/transforms/passes.h.inc" // The threshold of constant bits to be unfolded (1Mb). If there is a splat // constant with size equal or greater to this threshold, then it will be // unfolded back to a regular `tfl.fill` operation. constexpr int64_t kConstantSizeThresholdInBits = 1e+6; // Pass which will replace large splat constant tensors to `tfl.Fill` op to // reduce the size of the generated flatbuffer model size.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 4.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/constant_fold.cc
inputs.reserve(operands.size()); for (auto input : operands) { inputs.push_back(mlir::cast<ElementsAttr>(input)); } SmallVector<Attribute> constants; LogicalResult status = EvaluateOperation(inst, inputs, constants); results.assign(constants.begin(), constants.end()); return status; } static bool init_hooks = ([] () { TensorFlowDialect::RegisterConstantFoldHook(ConstantFoldFallbackHook); }(), true);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.3K bytes - Viewed (0) -
platforms/jvm/language-java/src/integTest/groovy/org/gradle/java/compile/incremental/AbstractCrossTaskConstantChangesIncrementalCompilationIntegrationTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Aug 28 11:40:18 UTC 2023 - 2.9K bytes - Viewed (0) -
analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10CompileTimeConstantProvider.kt
val bindingContext = analysisContext.analyze(expression) val constant = ConstantExpressionEvaluator.getPossiblyErrorConstant(expression, bindingContext) // TODO: how to _not_ evaluate expressions with a compilation error, e.g., uninitialized property access if (constant?.usesNonConstValAsConstant == true) return null return constant?.toConstantValue(TypeUtils.NO_EXPECTED_TYPE)?.toKtConstantValue() }
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Tue Jun 11 15:45:42 UTC 2024 - 2.2K bytes - Viewed (0) -
analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/base/KtConstantValue.kt
/** * A Kotlin constant value. This value amy be used as `const val` initializer or annotation argument. * Also, may represent evaluated constant value. So, `1 + 2` will be represented as `KaIntConstantValue(3)` * * For more info about constant values please see [official Kotlin documentation](https://kotlinlang.org/docs/properties.html#compile-time-constants]) */
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Wed May 22 06:28:34 UTC 2024 - 5.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/tests/prepare-tf-fake-quant.mlir
func.return %rst : tensor<256x8x7x16xf32> // CHECK-DAG: %[[CONSTANT:.*]] = arith.constant dense<0.000000e+00> : tensor<16xf32> // CHECK-DAG: %[[CONSTANT0:.*]] = arith.constant dense<0.000000e+00> : tensor<16x3x3x3xf32> // CHECK: %[[QUANTIZE:.*]] = "tfl.quantize"(%[[CONSTANT0]]) <{qtype = tensor<16x3x3x3x!quant.uniform<u8:f32, 1.000000e+00>>}>
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 09:41:17 UTC 2024 - 20.4K bytes - Viewed (0) -
test/const7.go
defer os.RemoveAll(dir) const bitLimit = 512 const charLimit = 10000 // compiler-internal constant length limit testProg(dir, "x1", bitLimit, "") testProg(dir, "x2", bitLimit+1, "constant overflow") testProg(dir, "x3", charLimit-2, "constant overflow") // -2 because literal contains 0b prefix testProg(dir, "x4", charLimit-1, "excessively long constant")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 11 20:56:32 UTC 2023 - 1.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/transforms/fold_constants_to_subgraph.cc
Option<bool> fold_all_constants_flag_{ *this, "fold-all-constants", llvm::cl::desc("Whether to fold all constants or just i32."), llvm::cl::init(false)}; }; void CopyConstantIntoFunc(int argument_index, Operation* const_op, func::FuncOp func) { assert( (llvm::isa<TFL::ConstOp, TFL::QConstOp, arith::ConstantOp>(const_op)) && "Expect QConst or Const op.");
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/tests/passes/fold_constant_transpose.mlir
// RUN: -split-input-file | FileCheck %s // CHECK-LABEL: transpose_simple_1d func.func @transpose_simple_1d() -> tensor<2xf32> { %0 = stablehlo.constant dense<[0.000000e+0, 1.000000e+0]> : tensor<2xf32> %1 = stablehlo.transpose %0, dims = [0] : (tensor<2xf32>) -> tensor<2xf32> return %1 : tensor<2xf32> }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 12 08:06:02 UTC 2024 - 2.2K bytes - Viewed (0)