Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 174 for signalPassFailure (0.64 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/passes/cast_bf16_ops_to_f32.cc

      populateWithGenerated(patterns);
    
      if (failed(applyPatternsAndFoldGreedily(module_op, std::move(patterns)))) {
        module_op.emitError() << "quant-cast-bf16-ops-to-f32 failed.";
        signalPassFailure();
      }
    }
    
    }  // namespace
    
    // Creates an instance of the Cast BF16 ops to F32 pass.
    std::unique_ptr<OperationPass<ModuleOp>> CreateCastBf16OpsToF32Pass() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Dec 10 05:52:02 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/internal/passes/xla_broadcast.cc

      mlir::ModuleOp module = func->getParentOfType<mlir::ModuleOp>();
      if (!module) return signalPassFailure();
      func.walk([&](ClusterOp cluster) {
        if (auto replicate = cluster->getParentOfType<ReplicateOp>()) {
          if (failed(MoveAllBroadcastsToCluster(cluster, replicate, module))) {
            return signalPassFailure();
          }
        }
      });
    }
    
    }  // namespace
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 13 18:52:07 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/quantization/tensorflow/fallback_to_flex_ops.cc

        } else if (mode_ == kLegacyIntegerMode) {
          return QuantizableOpsInLegacyMode().count(op_name) > 0;
        } else {
          mlir::emitError(getOperation().getLoc(), "Unregconized mode: " + mode_);
          signalPassFailure();
          return true;
        }
      }
    
      // Converts the operation to a TFLite Flex op.
      bool ConvertToFlexOp(Operation *op);
    };
    
    bool FallbackToFlexOps::ConvertToFlexOp(Operation *op) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/resource_device_inference.cc

        auto& func_res = per_function_results.find(func_op)->getSecond();
        // In-function propagation.
        if (failed(ComputeResourceDevicesInComputation(func_op, &func_res)))
          return signalPassFailure();
    
        // Propagation to callees.
        auto walk_res = func_op.walk([&](Operation* op) {
          if (auto while_op = dyn_cast<WhileOp>(op)) {
            if (failed(propagate_operands_to_callee_arguments(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 03 03:47:00 UTC 2023
    - 13.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/experimental/tac/transforms/get_alternative_subgraph.cc

      if (device_specs_flag_.empty()) {
        module.emitError("no device specs specified");
        signalPassFailure();
      }
    
      std::vector<std::string> device_specs;
      if (!ProcessTargetDevices(device_specs_flag_, &device_specs)) {
        module.emitError("unknown devices specified");
        signalPassFailure();
      }
    
      SmallVector<func::FuncOp, 25> funcs_to_be_processed;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 06 03:08:33 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/transforms/trim_functions_tf.cc

            return getOperation().emitError()
                   << func.getName() << " is not in the funcs allowlist";
          return WalkResult::advance();
        });
        if (walk_result.wasInterrupted()) return signalPassFailure();
      }
    }
    
    }  // namespace
    
    // Creates an instance of the TensorFlow Lite dialect TrimFunctions
    /// pass.
    std::unique_ptr<OperationPass<ModuleOp>> CreateTrimFunctionsPass() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Oct 07 21:08:41 UTC 2022
    - 4.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/colocate_tpu_copy_with_dynamic_shape.cc

      solver.load<dataflow::DeadCodeAnalysis>();
      solver.load<dataflow::SparseConstantPropagation>();
      solver.load<DeviceDataflowAnalysis>(symbolTables);
      if (failed(solver.initializeAndRun(module))) return signalPassFailure();
    
      module->walk([&](TF::TPUCopyWithDynamicShapeOp op) {
        const Device *state;
        for (auto result : op->getResults()) {
          state = solver.lookupState<Device>(result);
          if (state) break;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 23 00:30:27 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/localize_var_handles.cc

      solver.load<dataflow::DeadCodeAnalysis>();
      solver.load<dataflow::SparseConstantPropagation>();
      TF::LoadResourceDataflowAnalysis(solver);
      if (failed(solver.initializeAndRun(module))) return signalPassFailure();
    
      OpBuilder globalBuilder(module.getBodyRegion());
    
      module.walk(
          [&](TF::ReadVariableOp op) { MaybeCreateVarHandleForOp(op, solver); });
      module.walk(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 06 23:53:00 UTC 2024
    - 5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/passes/post_quantize.cc

                   RemoveVolatileOps<kPreserveNone>, RemoveRedundantScast>(ctx);
      populateWithGenerated(patterns);
      if (failed(applyPatternsAndFoldGreedily(func, std::move(patterns)))) {
        signalPassFailure();
      }
    }
    
    }  // namespace
    
    // Creates an instance of the TensorFlow dialect PostQuantize pass.
    std::unique_ptr<OperationPass<func::FuncOp>> CreatePostQuantizePass() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 07:39:40 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/stablehlo/passes/convert_xla_call_module_op_to_bfloat16.cc

            op_result.replaceAllUsesExcept(cast, cast.getDefiningOp());
          }
        }
        return WalkResult::advance();
      });
    
      if (result.wasInterrupted()) return signalPassFailure();
    }
    
    }  // namespace
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 08:32:43 UTC 2024
    - 5.6K bytes
    - Viewed (0)
Back to top