Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 57 of 57 for qtype_attr (0.23 sec)

  1. tensorflow/compiler/mlir/lite/experimental/tac/transforms/device_transform_patterns.cc

                                       mean_op.getAxis(), mean_op.getKeepDims());
    
      // Insert a requant op.
      rewriter.replaceOpWithNewOp<TFL::QuantizeOp>(
          mean_op, output_type, new_mean_op, mlir::TypeAttr::get(output_type));
      return success();
    }
    
    }  // namespace tac
    }  // namespace TFL
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/ir/tfl_ops.cc

      int64_t out = 0;
      for (int64_t outer = 0; outer < outer_size; ++outer) {
        for (auto op : operands) {
          auto typed_attr = op.cast<TypedAttr>();
          const int64_t dim_size =
              typed_attr.getType().cast<RankedTensorType>().getDimSize(axis);
          const int64_t inner_size = dim_size * base_inner_size;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 169.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc

        // types. But we need to wrap it up with ElementsAttr to construct
        // valid TensorFlow constants.
        auto typed_attr = mlir::cast<TypedAttr>(value);
        type = tensorflow::GetTypeFromTFTensorShape(/*shape=*/{},
                                                    typed_attr.getType());
        return ConstOp::build(builder, result, DenseElementsAttr::get(type, value));
      }
    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/lite/flatbuffer_operator.cc

      return builder.getI32IntegerAttr(value);
    }
    
    static mlir::Attribute BuildTypeAttr(tflite::TensorType value,
                                         mlir::Builder builder) {
      return mlir::TypeAttr::get(ConvertElementType(value, builder));
    }
    
    static mlir::Attribute BuildTFL_AFAttr(tflite::ActivationFunctionType value,
                                           mlir::Builder builder) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 38K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test.py

        type_attr = attr_value_pb2.AttrValue(type=types_pb2.DT_QINT8)
        if quantize:
          self.assertTrue(
              self._contains_op(output_graphdef, 'Const', 'dtype', type_attr)
          )
        else:
          self.assertFalse(
              self._contains_op(output_graphdef, 'Const', 'dtype', type_attr)
          )
    
      @parameterized.named_parameters(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 235.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/flatbuffer_export.cc

        // Const op can have a result of dynamic shaped type (e.g. due to constant
        // folding), but we can still derive the shape of a constant tensor for
        // its attribute type.
        auto tensor_attr = mlir::cast<mlir::TypedAttr>(inst->getAttr("value"));
        llvm::ArrayRef<int64_t> shape_ref =
            mlir::cast<TensorType>(tensor_attr.getType()).getShape();
        if (mlir::failed(check_shape(shape_ref))) return std::nullopt;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:41:49 UTC 2024
    - 164.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/ir/tf_generated_ops.td

        TypeAttr:$key_dtype,
        TypeAttr:$value_dtype
      );
    
      let results = (outs
        Res<TF_ResourceTensor, [{Handle to a table.}], [TF_LookupTableAlloc]>:$table_handle
      );
    
      let builders = [
        OpBuilder<(ins "StringAttr":$container, "StringAttr":$shared_name,
          "BoolAttr":$use_node_name_sharing, "TypeAttr":$key_dtype, "TypeAttr":$value_dtype),
        [{
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 23:24:08 UTC 2024
    - 793K bytes
    - Viewed (0)
Back to top