Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 81 for is_constant (0.66 sec)

  1. tensorflow/compiler/mlir/lite/utils/fake_quant_utils.h

                      AttrType &max_value) const {
        Value min = tf_op.getMin(), max = tf_op.getMax();
        if (!matchPattern(min, m_Constant(&min_value))) {
          return false;
        }
        if (!matchPattern(max, m_Constant(&max_value))) {
          return false;
        }
        return true;  // Successfully matched and fetched.
      }
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/aot/embedded_protocol_buffers.cc

                                             /*AddNull=*/false);
      new llvm::GlobalVariable(
          *module, protobuf_array_initializer->getType(),
          /*isConstant=*/true, llvm::GlobalValue::ExternalLinkage,
          protobuf_array_initializer, AsStringRef(*protobuf_array_symbol_name));
    }
    
    static string CreateCPPShimExpression(
        absl::string_view qualified_cpp_protobuf_name,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 00:48:41 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  3. platforms/jvm/language-java/src/main/java/org/gradle/api/internal/tasks/compile/incremental/asm/ClassDependenciesVisitor.java

            return (access & Opcodes.ACC_PRIVATE) == 0;
        }
    
        private static boolean isAccessibleConstant(int access, Object value) {
            return isConstant(access) && isAccessible(access) && value != null;
        }
    
        private static boolean isConstant(int access) {
            return (access & Opcodes.ACC_FINAL) != 0 && (access & Opcodes.ACC_STATIC) != 0;
        }
    
        public String getDependencyToAllReason() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 27 13:49:15 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_tensor_helper.cc

    // routine uses the constant op's attribute to get the actual shape.
    RankedTensorType GetRankedTensorTypeForOperand(Value operand) {
      DenseElementsAttr attr;
      if (matchPattern(operand, m_Constant(&attr))) {
        return mlir::dyn_cast<RankedTensorType>(attr.getType());
      }
      return mlir::dyn_cast<RankedTensorType>(operand.getType());
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_collective.cc

                                       DenseIntElementsAttr& replica_groups,
                                       Operation* op) {
      DenseIntElementsAttr group_assignment;
      if (!matchPattern(group_assignment_value, m_Constant(&group_assignment))) {
        return op->emitOpError() << "expects constant group_assignment";
      }
      replica_groups = mlir::cast<DenseIntElementsAttr>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 16K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/ops/tf_quantize_op.cc

      const bool kIsNarrowRange = true;
      const bool kIsSigned = true;
      const int kBitWidth = 8;
    
      DenseFPElementsAttr attr;
      if (!matchPattern(op->getResult(0), m_Constant(&attr))) return nullptr;
    
      QuantizedType quant_type = mlir::dyn_cast<quant::QuantizedType>(
          quant::GetUniformQuantizedTypeForWeight(
              attr, /*symmetric=*/kIsNarrowRange && kIsSigned, kBitWidth, kIsSigned,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/ir/tf_arith_ops_folder.cc

      auto input_type = mlir::dyn_cast<RankedTensorType>(input.getType());
      if (!input_type) return success();
      int64_t rank = input_type.getRank();
    
      DenseIntElementsAttr dims_attr;
      if (!matchPattern(dims, m_Constant(&dims_attr))) return success();
      for (const auto &dim_pair : llvm::enumerate(dims_attr)) {
        int64_t cur_dim = dim_pair.value().getSExtValue();
        if (cur_dim < -rank || cur_dim >= rank)
          return emitError(loc)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/common/attrs_and_constraints.h

        DenseIntElementsAttr value_attr;
        if (!matchPattern(value, m_Constant(&value_attr)) ||
            !value_attr.isSplat()) {
          return false;
        }
        splat_value = value_attr.getSplatValue<T>();
        return true;
      }
    
      DenseFPElementsAttr value_attr;
      if (!matchPattern(value, m_Constant(&value_attr)) || !value_attr.isSplat()) {
        return false;
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/init_text_file_to_import_test_pass.cc

        for (auto op : constant_ops) {
          ShapedType shaped_type =
              RankedTensorType::get({1}, StringType::get(context));
    
          DenseStringElementsAttr attr;
          if (!matchPattern(op.getOperation(), m_Constant(&attr))) {
            continue;
          }
    
          ArrayRef<StringRef> values = attr.getRawStringData();
          if (values.size() != 1 || values[0] != "%FILE_PLACEHOLDER") {
            continue;
          }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 04 09:19:38 UTC 2022
    - 5.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/tensorflow/utils/tf_to_xla_attribute_utils_test.cc

      Value packed_value = PackOperand(builder, module->getLoc(), value, pack_dim);
      DenseIntElementsAttr packed_value_attr;
      ASSERT_TRUE(matchPattern(packed_value, m_Constant(&packed_value_attr)));
    
      ShapedType packed_shape_type =
          mlir::dyn_cast<ShapedType>(packed_value.getType());
      llvm::SmallVector<int64_t> packed_shape(packed_shape_type.getShape().begin(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 3.5K bytes
    - Viewed (0)
Back to top