Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 175 for signalPassFailure (0.22 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/init_text_file_to_import_test_pass.cc

      std::error_code error_code =
          llvm::sys::fs::createUniqueDirectory("saved-model", tempdir);
      if (error_code) return signalPassFailure();
      error_code =
          llvm::sys::fs::create_directories(Twine(tempdir) + "/assets", false);
      if (error_code) return signalPassFailure();
    
      std::string filename = std::string(tempdir) + "/assets/tokens.txt";
    
      std::string error_message;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 04 09:19:38 UTC 2022
    - 5.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/shape_inference_pass.cc

            getOperation(), max_iterations_, /*ops_to_skip=*/{}, input_shapes_);
        if (failed(failure_or_converged)) return signalPassFailure();
        if (!failure_or_converged.value()) {
          getOperation().emitError()
              << "shape inference pass did not reach convergence after "
              << max_iterations_;
          return signalPassFailure();
        }
      }
    
     private:
      ArrayRef<ArrayRef<int64_t>> input_shapes_;
    };
    }  // namespace
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 12:49:45 UTC 2024
    - 3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/lift_variables_test_pass.cc

      ~LiftVariablesTestPass() override { delete session_; }
    
      void runOnOperation() override {
        ModuleOp module = getOperation();
        if (failed(tf_saved_model::LiftVariables(module, session_)))
          signalPassFailure();
      }
    
     private:
      Session* session_;
    };
    
    #define GEN_PASS_DEF_LIFTVARIABLESINVALIDSESSIONTESTPASS
    #include "tensorflow/compiler/mlir/tensorflow/transforms/test_passes.h.inc"
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 04 09:19:38 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/tf_graph_optimization_pass.cc

          module_in, confs, &graph, &flib_def, &control_ret_nodes);
      if (!status.ok()) {
        mlir::emitError(mlir::UnknownLoc::get(&ctx)) << status.message();
        return signalPassFailure();
      }
    
      // Run each of the passes that were selected.
      GraphConstructorOptions opts;
      opts.allow_internal_ops = true;
      opts.expect_device_spec = false;
    
      GraphOptimizationPassOptions options;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 22:19:26 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/mark_initialized_variables_test_pass.cc

      }
    
      void runOnOperation() override {
        TF::test_util::FakeSession session;
        if (failed(mlir::tf_saved_model::MarkInitializedVariablesInFunction(
                getOperation(), &session)))
          return signalPassFailure();
      }
    };
    
    // This pass is only available in the tf-opt binary for testing.
    class MarkInitializedVariablesInvalidSessionTestPass
        : public PassWrapper<MarkInitializedVariablesInvalidSessionTestPass,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 19 00:13:50 UTC 2022
    - 2.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/passes/convert_fake_quant_to_qdq.cc

        func.emitError() << "quant-convert-fake-quant-to-qdq pass failed.";
        signalPassFailure();
      }
    
      // For removing dead FakeQuant* ops
      RewritePatternSet patterns(ctx);
      if (failed(applyPatternsAndFoldGreedily(func, std::move(patterns)))) {
        signalPassFailure();
      }
    }
    
    }  // namespace
    
    std::unique_ptr<OperationPass<func::FuncOp>> CreateConvertFakeQuantToQdqPass() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 15 00:56:15 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/transforms/prepare_composite_functions_tf.cc

        if (failed(ConvertTFTextAPI(func, api_name, attr))) {
          return signalPassFailure();
        }
      } else if (api_name == kCustomSSDPostprocessing) {
        ConvertSSDPostProcessFunc convert_ssd_postprocess(func, attr);
        if (failed(convert_ssd_postprocess.VerifySignature())) return;
        if (failed(convert_ssd_postprocess.RewriteFunc())) {
          return signalPassFailure();
        }
      } else if (api_name == kCustomMaxUnpooling) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/freeze_global_tensors.cc

      DataFlowSolver solver;
      solver.load<dataflow::DeadCodeAnalysis>();
      solver.load<dataflow::SparseConstantPropagation>();
      TF::LoadResourceDataflowAnalysis(solver);
      if (failed(solver.initializeAndRun(module))) return signalPassFailure();
    
      DenseSet<GlobalTensorOp> remaining_global_tensor_ops;
      {
        auto ops = module.getOps<GlobalTensorOp>();
        remaining_global_tensor_ops.insert(ops.begin(), ops.end());
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/replica_id_to_device_ordinal.cc

        getOperation().emitError() << "'tf' dialect is not registered";
        return signalPassFailure();
      }
    
      // Get the number of devices per host.
      int device_num = 0;
      mlir::TF::RuntimeDevices devices;
      if (failed(tensorflow::GetDevicesFromOp(
              getOperation()->getParentOfType<ModuleOp>(), &devices)))
        return signalPassFailure();
      for (const auto& device_name : devices.device_names()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 23:50:19 UTC 2022
    - 4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/tpu_update_embedding_enqueue_op_inputs.cc

        return signalPassFailure();
    
      if (enqueue_op_map.size() != recv_activation_op_map.size()) {
        func_op.emitError() << "expects the number of embedding enqueue ops to "
                               "match the number of '"
                            << TF::RecvTPUEmbeddingActivationsOp::getOperationName()
                            << "' ops";
        return signalPassFailure();
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 23:50:19 UTC 2022
    - 7.7K bytes
    - Viewed (0)
Back to top