Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 73 for BoolAttr (0.36 sec)

  1. tensorflow/compiler/mlir/lite/transforms/prepare_tf.cc

    // destination type is not inferred and must be given explicitly.
    //
    // Preconditions: The given value must have a ShapedType.
    static Value CreateTFCastOpI32(OpBuilder *builder, Location loc, Value x,
                                   BoolAttr truncate) {
      auto x_type = mlir::dyn_cast_or_null<ShapedType>(x.getType());
      if (!x_type) llvm_unreachable("unsupported type");
      Type type = x_type.clone(builder->getI32Type());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 64.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/passes/replace_cast_hacks_with_tf_xla_ops.cc

                                         Value input, Value weight, Value input_zp,
                                         Value weight_zp, Value output,
                                         BoolAttr transpose_a,
                                         BoolAttr transpose_b) {
      // Transpose and constant-fold the weight if needed.
      if (transpose_b.getValue()) {
        Value perm = Create1DConstValue<int32_t>(builder, loc, {1, 0});
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 47.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/analyze_variables.cc

            legalize_to_tfl = false;
            return WalkResult::interrupt();
          }
        }
        return WalkResult::advance();
      });
      module->setAttr(kLegalizeTflVariables,
                      BoolAttr::get(context, legalize_to_tfl));
    }
    
    }  // namespace
    
    std::unique_ptr<OperationPass<ModuleOp>> CreateAnalyzeVariablesPass() {
      return std::make_unique<AnalyzeVariablesPass>();
    }
    
    }  // namespace TFL
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/utils/lstm_utils.cc

          mlir::TFL::LSTMKernelTypeAttr::get(builder_.getContext(),
                                             mlir::TFL::LSTMKernelType::FULL),
          /*asymmetric_quantize_inputs=*/mlir::BoolAttr(),
          /*input_to_input_intermediate=*/mlir::TypeAttr(),
          /*input_to_forget_intermediate=*/mlir::TypeAttr(),
          /*input_to_cell_intermediate=*/mlir::TypeAttr(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 36.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_lifting.cc

        }
      } else if (llvm::isa<TF::BatchMatMulV2Op>(op)) {
        if (const auto adj_y = op->getAttrOfType<BoolAttr>("adj_y")) {
          is_supported_affine_op = !adj_y.getValue();
        }
      } else if (llvm::isa<TF::MatMulOp>(op)) {
        if (const auto adj_y = op->getAttrOfType<BoolAttr>("transpose_b")) {
          is_supported_affine_op = !adj_y.getValue();
        }
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/stablehlo/passes/insert_calibration_statistics_saver.cc

      // to stateful, otherwise the op will not be executed.
      OpBuilder builder(&ctx);
      module_op.walk([&builder](Operation* op) {
        if (op->hasAttrOfType<BoolAttr>("is_stateless") &&
            ContainCalibrationStatisticsSaverOp(op)) {
          op->setAttr("is_stateless", builder.getBoolAttr(false));
        }
      });
    }
    
    std::unique_ptr<OperationPass<ModuleOp>>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/fused_kernel_matcher.cc

          });
          return false;
        }
        // FusedMatMul kernel does not support grad_a/grad_b attrs
        if ((matmul->hasAttr("grad_a") &&
             mlir::cast<BoolAttr>(matmul->getAttr("grad_a")).getValue()) ||
            (matmul->hasAttr("grad_b") &&
             mlir::cast<BoolAttr>(matmul->getAttr("grad_b")).getValue())) {
          (void)rewriter.notifyMatchFailure(matmul, [&](Diagnostic &diag) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/utils/fake_quant_utils.h

        // attribute to create the quantization parameter for the new quantize op.
        rewriter.setInsertionPointAfter(tf_op.getOperation());
        IntegerAttr num_bits = rewriter.getI64IntegerAttr(tf_op.getNumBits());
        BoolAttr narrow_range = rewriter.getBoolAttr(tf_op.getNarrowRange());
        Type res_type = tf_op.getType();
        TypeAttr qtype = quant::GetQuantizedTypeAttr(
            rewriter, res_type, min_value, max_value, quant_dim, num_bits,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/utils/fake_quant_utils.h

        // attribute to create the quantization parameter for the new quantize op.
        rewriter.setInsertionPointAfter(tf_op.getOperation());
        IntegerAttr num_bits = rewriter.getI64IntegerAttr(tf_op.getNumBits());
        BoolAttr narrow_range = rewriter.getBoolAttr(tf_op.getNarrowRange());
        Type res_type = tf_op.getType();
        TypeAttr qtype = quant::GetQuantizedTypeAttr(
            rewriter, input_type, min_value, max_value, quant_dim, num_bits,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tfrt/ir/mlrt/tf_ops.td

        This op returns a scalar string tensor as a key for user to look for the loaded array
        and a future containing the restored tensor.
      }];
    
      let arguments = (ins
        TF_Tensor:$variable,
        DefaultValuedAttr<BoolAttr, "false">:$used_by_host
      );
    
      let results = (outs
        TF_Tensor:$array_key,
        MlrtFutureType: $tensor_future
      );
    }
    
    
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 22 21:35:32 UTC 2024
    - 6.7K bytes
    - Viewed (0)
Back to top